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
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
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
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