You might want to review:
http://wiki.apache.org/solr/UsingMailingLists

You've given us a config, but no idea what you've
tried. What you observe. What error you're seeing.

What do your logs show? Are you seeing any error
stack traces? Have you tried backing this up and
trying only one addition at a time? For instance,
take out the whole TikaEntityProcessor and see if
you can just connect to your DB and index something
from there.

It appears you have a custom Transformer. Take that
out. Or put logging messages in there to see if you
even get that far.

In other words, try stuff and tell us what the results
are. But just saying "it doesn't work" gives us very
little to go on.

Best
Erick

On Sun, Oct 2, 2011 at 11:00 PM, scorpking <lehoank1...@gmail.com> wrote:
> 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