You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Jamal, Sarfaraz" <Sa...@VerizonWireless.com.INVALID> on 2016/07/01 20:34:52 UTC

Question about Indexing Updated Documents

Hi Guys,

I have a data-import handler set up that indexes all of the documents from a few small tables.

What is the best way to update the index when a single one of those documents change.

Is it possible to use SQL or must I post json or xml to solr?

Thanks you,

Sas

Re: Question about Indexing Updated Documents

Posted by Chris Hostetter <ho...@fucit.org>.
If you are already using DIH, then you can use a 
deltaQuery to find "updated" documents and index only 
them.

https://cwiki.apache.org/confluence/display/solr/Uploading+Structured+Data+Store+Data+with+the+Data+Import+Handler

Some people just parameterize their main DIH query and use request params 
to control which documents get indexed when doing a "full build"...

https://wiki.apache.org/solr/DataImportHandlerDeltaQueryViaFullImport



-Hoss
http://www.lucidworks.com/