lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Kor <>
Subject Re: Indexing and deleting simultaneously..
Date Tue, 27 Dec 2005 11:52:30 GMT
On 12/27/05, K.A.Hussain Ali <> wrote:
> HI all.
> I am a newbie to Lucene..
> Could we do indexing and deleting a document on the same file simultaneously ?

At any one time, there can only be a single Lucene index writer and
any number of index readers. You cannot have two different index
writer threads modifying the same index simultaneously. Thus, no, you
cannot have one thread indexing new documents and another thread
deleting documents from the same index at the same time.

What you can do is have a single index writer thread that interleave
add document and delete document operations in a sequential manner.

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

View raw message