Re: lock file of lucene

2006-09-27 Thread jacky
D]> To: Sent: Wednesday, September 27, 2006 4:55 PM Subject: Re: lock file of lucene > Hi jacky, > > Before you open IndexWriter object you can check whether lock file exists or > not and if its available you can unlock it. > Use IndexReader.isLocked and IndexRead

Re: lock file of lucene

2006-09-27 Thread Michael McCandless
Bhavin Pandya wrote: > Before you open IndexWriter object you can check whether lock file > exists or not and if its available you can unlock it. > Use IndexReader.isLocked and IndexReader.unlock. Also, you could use a try / finally and always close the IndexWriter in the finally clause, which sh

Re: lock file of lucene

2006-09-27 Thread Bhavin Pandya
Hi jacky, Before you open IndexWriter object you can check whether lock file exists or not and if its available you can unlock it. Use IndexReader.isLocked and IndexReader.unlock. - Bhavin pandya - Original Message - From: "jacky" <[EMAIL PROTECTED]> To: Sent: Wednesday, September