Just closing IndexSearcher should be enough.
Are you really sure you're closing all IndexSearchers you've opened?
Hmm the code looks somewhat dangerous. Why sleep for 10 seconds
before closing? Is this to ensure any in-flight queries finish? It's
better to explicitly track this (eg w/ IndexRea
Hello,
I use Lucene 2.9.1 with two indices, which alternate each day. One is
live, the other is erased and renewed with the latest data.
The problem is that the index files will be deleted, but the file
handles are still available. If the program (JBOSS) is not restarted for
some time, the dis