Re: how to safely periodically reopen the IndexReader?

2008-02-21 Thread Stephane Nicoll
On Mon, Feb 18, 2008 at 6:08 PM, [EMAIL PROTECTED] wrote: We have the same situation and use an atomic counter. Basically, we have a SearcherHolder class and a SearcherManager class. The SearcherHolder holds the searcher and the number of threads referencing the searcher. When the

Re: how to safely periodically reopen the IndexReader?

2008-02-20 Thread zaexage
to safely periodically reopen the IndexReader? Hi, all I've got a question here needing your help: For my index, I opened one IndexWriter (autocommit mode) and one IndexSearcher on it; I have quite a lot of threads here concurrently writing new documents and doing search in index

Re: how to safely periodically reopen the IndexReader?

2008-02-18 Thread Robert . Hastings
respond to java-user@lucene.apache.org To java-user@lucene.apache.org cc Subject how to safely periodically reopen the IndexReader? Hi, all I've got a question here needing your help: For my index, I opened one IndexWriter (autocommit mode) and one IndexSearcher on it; I have quite a lot

how to safely periodically reopen the IndexReader?

2008-02-16 Thread ZaeX
Hi, all I've got a question here needing your help: For my index, I opened one IndexWriter (autocommit mode) and one IndexSearcher on it; I have quite a lot of threads here concurrently writing new documents and doing search in index. the IndexWriter is flushed periodically. as I want the

RE: how to safely periodically reopen the IndexReader?

2008-02-16 Thread John Griffin
- From: ZaeX [mailto:[EMAIL PROTECTED] Sent: Saturday, February 16, 2008 2:32 AM To: java-user@lucene.apache.org Subject: how to safely periodically reopen the IndexReader? Hi, all I've got a question here needing your help: For my index, I opened one IndexWriter (autocommit mode) and one