: > The request I would like to write is
: >
: > "Delete from my solr Index the id that are no longer present in my
: > table_document"
: >
: > With Lucene I had a way to do that :
: > open IndexReader,
: > for each lucene document : check in table_document and remove in lucene
: > index if document is no longer present in the table

you can still do that with Solr, you can even do it as a Solr plugin (I 
would suggest a RequestHandler that you hit after each DIH call) so 
you can reuse your existing code that deals directly with an IndexReader 
-- but you'd probably want to tweak it a bit to use the UpdateHandler from 
the SolrCore instead of deleting the doc direclty, that way it's logged 
properly and you can trigger a commit to make Solr aware you've modified 
the index.



-Hoss

Reply via email to