Reputation: 23
I have a Created Lucene Index over some documents and storing this index in a folder.
Now i want to update this Index like
1- Deleting subset of documents from Lucene Index
2- Adding more documents to Lucene Index
How is this possible ? Do i have to create Lucene Index over complete documents again?
Thanks
Upvotes: 0
Views: 182
Reputation: 26733
Don't know which version of Lucene you are using, but assuming you are using Java and version 4.0+, you should open IndexWriter
with APPEND
mode, configured in IndexWriterConfig
. If you are using .net, there should be a close counterpart.
Upvotes: 1