lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Luc Dupont" <PLDup...@mediagrif.com>
Subject RE: Open an IndexWriter in parallel with an IndexReader on the same index.
Date Tue, 21 Feb 2006 15:19:52 GMT
Ok, thanks.

That is what I was thinking. 

Pierre-Luc 

-----Original Message-----
From: Yonik Seeley [mailto:yseeley@gmail.com] 
Sent: 2006-02-21 10:14
To: java-user@lucene.apache.org
Subject: Re: Open an IndexWriter in parallel with an IndexReader on the
same index.

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


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