RE: deleting documents from index

2005-09-01 Thread houyang
: Thursday, September 01, 2005 7:18 AM To: java-dev@lucene.apache.org Cc: [EMAIL PROTECTED] Subject: RE: deleting documents from index Indexing on one indexing file in a multithreaded env needs to be serialized --you need to synchronize the call to indexwriter.addDocument(). Otherwise Lucene will throw

RE: deleting documents from index

2005-09-01 Thread Xiaozheng Ma
Indexing on one indexing file in a multithreaded env needs to be serialized --you need to synchronize the call to indexwriter.addDocument(). Otherwise Lucene will throw exceptions. After all, Lucene uses file-based locking to ensure that only one thread can modify the same index at the same time.