How do I update a document or a set of documents that are already indexed?

Otis Gospodnetic

To update an index incrementally you must first delete the documents that were updated, and then re-add them to the index.
There is no direct update procedure in Lucene. There is no update() method, so just delete and re-add documents that you want to update to achieve the same effect.

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact