lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scorpking <lehoank1...@gmail.com>
Subject Re: How to skip current document to index data from DIP
Date Mon, 03 Oct 2011 03:00:15 GMT
Hi, thanks for your reply.
But, when i set attribute onError="skip", There is no data which import.
This is my config. 
*<dataConfig>
    <dataSource type="JdbcDataSource"
driver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://myip;databaseName=VTC_Edu" user="ac" password="ps" 
name="dsdb"/>
	
	<dataSource type="BinURLDataSource" name="dsurl"/>
    
	<document>
		
		<entity name="VTCEduDocument" dataSource="dsdb" pk="pk_document_id"
query="select pk_document_id, s_path_origin from
[VTC_Edu].[dbo].[tbl_Document]" onError="skip"
		
		>
                <field column="pk_document_id" name="pk_document_id" />				
				<field column="s_path_origin" name="s_path_origin" />						
		
		
		<entity processor="TikaEntityProcessor" dataSource="dsurl" format="text"
url=
"http://media.gox.vn/edu/document/original/${VTCEduDocument.s_path_origin}"
		transformer="com.vtc.search.Converter" onError="skip"
		>
				<field column="Author" name="author" meta="true"/>
                <field column="title" name="title" meta="true"/>
                <field column="text" name="text" encodingvn="true"/> 
      </entity>
	  </entity>
  
    </document>
</dataConfig>*

Thanks


--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-skip-current-document-to-index-data-from-DIH-tp3381894p3388700.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message