lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Busch <>
Subject Re: Best way to Add items to Index in Real Time
Date Wed, 05 Jul 2006 22:55:38 GMT
Otis Gospodnetic wrote:
> If you are getting errors while searching and at the same either adding or deleting documents,
chances are you are not using the API correctly and following the concurrency rules (described
many times on this list).  Yo ucan search and modify your index at the same time.  Adding
and deleting documents is best done in batches (e.g. run your deletions first, close IndexReader
that did deletions (could be the same one that is used for searching), open IndexWriter, add
documents, close writer, re-open IndexSearcher/Reader for searching so your changes are visible).
> Otis


check out this nice patch, it could be useful for your use case:

It provides better performance when you have a big number of 
update/delete operations.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message