Ok, thanks. That is what I was thinking.
Pierre-Luc -----Original Message----- From: Yonik Seeley [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]