lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
Subject Re: Open an IndexWriter in parallel with an IndexReader on the same index.
Date Tue, 21 Feb 2006 15:13:52 GMT
On 2/21/06, Pierre Luc Dupont <PLDupont@mediagrif.com> wrote:
>     is it possible to open an IndexWriter and an IndexReader on the same
> index, at the same time,
> to do deleteTerm and addDocument?

No, it's not possible.  You should batch things: do all your
deletions, close the IndexReader, then open an IndexWriter and do all
the addDocument calls.

-Yonik

---------------------------------------------------------------------
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