lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: searching while indexing.
Date Wed, 05 Jan 2005 10:48:42 GMT

On Jan 5, 2005, at 5:12 AM, Peter Veentjer - Anchor Men wrote:

> -----Oorspronkelijk bericht-----
> Van: Erik Hatcher [mailto:erik@ehatchersolutions.com]
> Verzonden: woensdag 5 januari 2005 10:58
> Aan: Lucene Users List
> Onderwerp: Re: searching while indexing.
>
> There are no problems searching while indexing.  How are you
> experiencing otherwise?  What error do you get?
>
> I have experienced (lock) problems if I use a Reader and Writer (on the
> same index-directory) at the same time. My application is multithreaded
> (a pool of worker threads for the webrequests) and a scheduledworker
> thread for signaling changes (new (normal) files, changed files and
> removed files) and updating the index.
>
> And I`m not the only one experiencing this problem... It ( Reader and
> Writer open at the same time) has been mentioned on mailinglist quite a
> few times.

Is your IndexReader doing deletes?  That is the only time it locks the 
index (because that is essentially a write operation).  If you're 
purely searching with the reader it should work fine with a writer 
concurrently.

	Erik


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


Mime
View raw message