lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Calvo" <>
Subject RE: problems with last patch (obtain write.lock while deleting documents)
Date Mon, 11 Feb 2002 01:48:46 GMT
> From: Doug Cutting []

> It is most effiecient to batch deletions and insertions, i.e., perform a
> bunch of deletions on a single IndexReader, close it, then perform a bunch
> of insertions on a single IndexWriter.  Usually the IndexReader that you do
> the deletions on is different than the one other threads are simultaneously
> using for searching, since if you close a reader while a search is underway
> it will crash the search.

Unfortunately I can't do that in my application. Users are allowed to insert and delete files
at any time and changes should be
reflected asap.

Thanks for the answer,


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

View raw message