Re: reopen with optimize and FileNotFoundException

2011-03-10 Thread bart_212
I've tried different lucene locks to use, however I always get FNFE during huge index update while IR reopens index. To prevent two IW at the same time, I synchronize this operation using external locking mechanism based on atomic filesystem operation like creating directory. So just before indexin

reopen with optimize and FileNotFoundException

2011-03-09 Thread bart_212
Hi, I have two web applications that uses lucene 2.3.2. Both share the same index and can write or read. Writing is synchronized based on file system to allow only one IndexWriter to work at the moment. There can be multiple IndexReader. IndexReader is stored and before searching, there is done #re