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.

Reply via email to