Re: Multiple threads in Lucene

2006-03-23 Thread Doug Cutting
Olivier Jaquemet wrote: IndexReader.unlock(indexDir); // unlock directory in case of unproper shutdown This should be used very carefully. In particular, you should only call it when you are certain that no other applications are accessing the index. Doug ---

Re: Multiple threads in Lucene

2006-03-23 Thread Otis Gospodnetic
l what you are doing wrong from the stacktrace, sorry. Otis - Original Message From: Nikhil Goel <[EMAIL PROTECTED]> To: java-user@lucene.apache.org; Otis Gospodnetic <[EMAIL PROTECTED]> Sent: Thursday, March 23, 2006 2:04:30 PM Subject: Re: Multiple threads in Lucene Hi Otis,

Re: Multiple threads in Lucene

2006-03-23 Thread Olivier Jaquemet
ednesday, March 22, 2006 6:04:41 PM Subject: Multiple threads in Lucene Hi Lucene Developers, According to Lucene Documentation, IndexWriter can exist with multiple IndexSearcher and its thread safe. To verify that: I wrote a simple program to simulate that condition but unfortunately I get an exceptio

Re: Multiple threads in Lucene

2006-03-23 Thread Nikhil Goel
e doing wrong with the threads... it looks like you > might be opening multiple IndexWriters on the same index/directory (big no > no). > > Otis > > - Original Message > From: Nikhil Goel <[EMAIL PROTECTED]> > To: java-user@lucene.apache.org > Sent: Wedn

Re: Multiple threads in Lucene

2006-03-22 Thread Otis Gospodnetic
el <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Wednesday, March 22, 2006 6:04:41 PM Subject: Multiple threads in Lucene Hi Lucene Developers, According to Lucene Documentation, IndexWriter can exist with multiple IndexSearcher and its thread safe. To verify that: I wrote a simple pro

Multiple threads in Lucene

2006-03-22 Thread Nikhil Goel
Hi Lucene Developers, According to Lucene Documentation, IndexWriter can exist with multiple IndexSearcher and its thread safe. To verify that: I wrote a simple program to simulate that condition but unfortunately I get an exception. Please let me know if anyone has ever tested the Lucene claim th