lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Busch <busch...@gmail.com>
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
>
>   

Hi,

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

http://issues.apache.org/jira/browse/LUCENE-565
http://www.gossamer-threads.com/lists/lucene/java-dev/35317

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

Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message