Hi All,
I am using mysql dataimport handler to index documents from database. I
have stored news articles in database. I have done following changes in
dataimport
<requestHandler name="/dataimport"
class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-import.xml</str>
</lst>
</requestHandler>
Added following xml in data import.xml file
<dataConfig>
<dataSource type="JdbcDataSource"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://XXXX.XXXX.XXX/ABC"
user="ABC"
password=ABCDEF"/>
<document name="doc">
<entity name="json_content" query="select id as 'id',
news_url,news_title,content from news;" >
<field column="id" name="id" />
<field column="news_title" name="news_title" />
<field column="content" name="content"/>
<field column="news_url" name="news_url"/>
</entity>
</entity>
</document>
</dataConfig>
Solr indexing is good but for some documents process is getting stuck. I
want to skip those documents after some waiting time. is there any way to
implement the concept on the basis of processing time.
Thanks
Vineet Yadav