Re: Concurrency between IndexReader and IndexWriter

2007-12-09 Thread Antony Bowesman
Looks like I got myself into a twist for nothing - the reader will see a consistent view, despite what the writer does as long as the reader remains open. Appologies for the noise... Antony - To unsubscribe, e-mail: [EMAIL PR

Re: Concurrency between IndexReader and IndexWriter

2007-12-09 Thread Antony Bowesman
Using Lucene 2.1 Antony Bowesman wrote: My application batch adds documents to the index using IndexWriter.addDocument. Another thread handles searchers, creating new ones as needed, based on a policy. These searchers open a new IndexReader and there is currently no synchronisation between t

Concurrency between IndexReader and IndexWriter

2007-12-09 Thread Antony Bowesman
My application batch adds documents to the index using IndexWriter.addDocument. Another thread handles searchers, creating new ones as needed, based on a policy. These searchers open a new IndexReader and there is currently no synchronisation between this action and any being performed by my w