Morus Walter wrote:
AFAIK you should never open an IndexWriter and an IndexReader at the same time. You should use only one of them at a time but you may open as many IndexSearchers as you like for searching.
You cannot open an IndexSearcher without opening an IndexReader (explicitly or implicitly).
I should have been more specific. The IndexReader which gets opened by an IndexSearcher will never have any changes to commit. So there will never be a problem with locks. As soon as you use an IndexReader to modify your index (delete doc for example) you should not have another IndexReader or IndexWriter open or you will probably get problems with the locks.
Christoph
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]