lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kiehl <ki...@subshell.com>
Subject Re: Locks and Readers and Writers
Date Thu, 28 Oct 2004 09:49:32 GMT
yahootintin.1247688@bloglines.com wrote:

> I'm getting:
> java.io.IOException: Lock obtain timed out
> 
> I have
> a writer service that opens the index to delete and add docs.  I have a reader
> service that opens the index for searching only.

AFAIK you should never open an IndexWriter and an IndexReader at the 
same time. You should use only one of them at a time but you may open as 
many IndexSearchers as you like for searching.

Regards,
Christoph


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