Re: lucene locks index, tomcat has to stop and restart

2004-09-07 Thread Patrick Burleson
Ah, I see your problem. From the Lucene Javadocs on IndexSearcher.close(): "Note that the underlying IndexReader is not closed, if IndexSearcher was constructed with IndexSearcher(IndexReader r). If the IndexReader was supplied implicitly by specifying a directory, then the IndexReader gets closed

Re: lucene locks index, tomcat has to stop and restart

2004-09-07 Thread Patrick Burleson
This isn't a Tomcat specific problem, but sounds like a problem with how you the reader is being used. Somewhere in the JSP a IndexReader variable was probably assigned to. A line something like: IndexReader ir = IndexReader.open("somepath"); To close the reader, and thus solve the problem, some

lucene locks index, tomcat has to stop and restart

2004-09-07 Thread hui liu
Hi, I met with such a problem with lucene demo: Each time when I create lucene index, I have to first stop tomcat, and restart tomcat after the index is created. The reason is: the index is locked when using IndexReader.open(index) method in the jsp file. So, I tried to modify the jsp codes by a

lucene locks index, tomcat has to stop and restart

2004-09-07 Thread hui liu
Hi all, I met with such a problem with lucene demo: Each time when I create lucene index, I have to first stop tomcat, and restart tomcat after the index is created. The reason is: the index is locked when using IndexReader.open(index) method in the jsp file. So, I tried to modify the jsp codes