Re: Lock error attempting update of RAMDirectory index

2006-09-01 Thread Michael McCandless
You probably forgot to close an IndexWriter? Well, I wish it were that easy...I open one IndexWriter to write the documents to the index after it is created, and then call writer.optimize() and writer.close(). Your suggestion is a good one in that, from what I've read, the writer needs to be clo

Re: Lock error attempting update of RAMDirectory index

2006-09-01 Thread karl wettin
On Thu, 2006-08-31 at 19:34 -0700, Philip Brown wrote: karl wettin-3 wrote: > > > > On Thu, 2006-08-31 at 15:24 -0700, Philip Brown wrote: > >> > >> I'm getting the following error trying to instantiate an IndexModifier > >> on a RAMDirectory index: > >> > >> java.io.IOException: Lock obtain tim

Re: Lock error attempting update of RAMDirectory index

2006-08-31 Thread Philip Brown
mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Lock-error-attempting-update-of-RAMDirectory-index-tf2199620.html#a6091907 Sent from the Lucene - Java Users forum at Nabble.com. ---

Re: Lock error attempting update of RAMDirectory index

2006-08-31 Thread karl wettin
On Thu, 2006-08-31 at 15:24 -0700, Philip Brown wrote: > > I'm getting the following error trying to instantiate an IndexModifier > on a RAMDirectory index: > > java.io.IOException: Lock obtain timed out: > [EMAIL PROTECTED] You probably forgot to close an IndexWriter? ---

Lock error attempting update of RAMDirectory index

2006-08-31 Thread Philip Brown
and index synchronization? Thanks in advance, Philip -- View this message in context: http://www.nabble.com/Lock-error-attempting-update-of-RAMDirectory-index-tf2199620.html#a6089447 Sent from the Lucene - Java Users forum at