RE: Waiting for lock file problem

2009-05-16 Thread Newman, Billy
only checking once and then waiting 10 seconds to > throw and exception? > > Thanks again, > Billy > > ________________ > From: Michael McCandless [luc...@mikemccandless.com] > Sent: Friday, May 15, 2009 2:52 PM > To: java-user@lucene.apache.org > Sub

Re: Waiting for lock file problem

2009-05-16 Thread Michael McCandless
nd then waiting 10 seconds to > throw and exception? > > Thanks again, > Billy > > ____________________ > From: Michael McCandless [luc...@mikemccandless.com] > Sent: Friday, May 15, 2009 2:52 PM > To: java-user@lucene.apache.org > Subject: Re: Waiting for lock fil

RE: Waiting for lock file problem

2009-05-16 Thread Newman, Billy
ly checking once and then waiting 10 seconds to throw and exception? Thanks again, Billy From: Michael McCandless [luc...@mikemccandless.com] Sent: Friday, May 15, 2009 2:52 PM To: java-user@lucene.apache.org Subject: Re: Waiting for lock file problem You sho

Re: Waiting for lock file problem

2009-05-15 Thread Michael McCandless
You should try to share a single IndexWriter instance across "Build Indices" and "Application". Also, you shouldn't open a new IndexWriter for each document added (nor, call optimize), if possible. Lucene doesn't allow more than one IndexWriter to be open at once on the same index (the write lock