lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From puffm...@darksleep.com (Steven J. Owens)
Subject Re: Concurrency in Lucene.
Date Wed, 08 May 2002 05:13:30 GMT
Flavio,

On Tue, May 07, 2002 at 12:14:56PM -0300, Flavio Arruda wrote:

> I?m starting a new project using lucene where all forms filled by
> users are indexed and I ?m wondering about the possibility of
> concurrency problems...  Have someone got concurrency problems using
> lucene?  Any advice or experience's share will be inevaluable!!

     In general, Doug has stated and people have found Lucene to be
thread safe.  Specifically, the index searcher is thread safe and the
index writer is thread safe.  The query parser is *not* thread safe
(so each thread using the index should have its own query parser).

     The index writer is thread safe, so you can update the index
while people are searching it.  However, you then have to make sure
that the threads with open index searchers close them and open new
ones, to get the newly updated data.

Steven J. Owens
puff@darksleep.com





--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message