Solr Delta Import Query is deleting everything in the -
i trying delta import query working solr schema. when full import solr index gets populated correctly. however, when try , delta import, looks processes - , gives following result in solr gui:
indexing completed. added/updated: 0 documents. deleted 0 documents. requests: 1, fetched: 0, skipped: 0, processed: 0
this correct, database should have no updates since full query.
however, when full query of core after delta update, shows documents gone, , core empty! of doing through solr web admin gui.
here delta import handler config file:
<entity name="episode" query="select episode_id db.episode" deltaquery="select episode_id db.episode last_modified > '${dih.last_index_time}'" deltaimportquery="select episode_id db.episode episode_id = '${dih.delta.episode_id}'"> </entity>
here relevant stuff in schema file:
<fields> <field name='episode_id' indexed="true" stored="true" type='int' required="true"/> </fields>
and here dih stuff in solrconfig.xml:
<lib dir="${solr.install.dir:../../../..}/lib/" regex="mysql-connector-java-5.1.35-bin.jar" /> <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-dataimporthandler-.*\.jar" /> <requesthandler name="/dataimport" class="org.apache.solr.handler.dataimport.dataimporthandler"> <lst name="defaults"> <str name="config">episodedihconfigfile.xml</str> </lst> </requesthandler>
any ideas why happening? thought delta query add index, , not delete everything! appreciated...
since you're using admin gui, i'm going guess have little "clean" checkbox ticked, means import starts clean
flag set true. uncheck box , try again.
if set clean
true, entire index wiped before indexing begins. useful full-imports, not deltas!
Comments
Post a Comment