problem with IndexSearcher

2005-06-14 Thread Stefano Buliani
Hi, I'm currently using Lucene on a java web site; I've a class containing a synchronized method that runs all the update on the index, this class also contains a method (not synchronized) called getSearcher which returns an IndexSearcher object. I'm using the singleton pattern for this class so t

searches and updates concurrency problem

2005-06-06 Thread Stefano Buliani
Hi everyone, I'm a newbie of Lucene, just installed it. My problem is that the index update procedure and the searches could run simultaneously, and, if they do, they corrupt the index file. Is there a way to let Lucene handle this concurrency automatically (like stop the searches till the update i