Indexer / Searcher holding deleted files

2007-08-29 Thread Aleksander M. Stensby
Hello everyone. I have a system where an indexing-process is running several times a day, adding documents, and performing an optimize() at the end of every run. In addition, we have a web-application (running in tomcat) that is used to perform searches on the index(es). The problem (probab

Re: Indexer / Searcher holding deleted files

2007-08-29 Thread Mark Miller
Reopen the Searchers/Readers that are holding the files open. Aleksander M. Stensby wrote: Hello everyone. I have a system where an indexing-process is running several times a day, adding documents, and performing an optimize() at the end of every run. In addition, we have a web-application (ru

Re: Indexer / Searcher holding deleted files

2007-08-29 Thread Aleksander M. Stensby
Hmm, yeah, well thats what I do now... Shouldn't it be sufficient to do: searcher.close(); (...) searcher = new IndexSearcher(indexPath); Or? And maybe wrap that in if(searcher.getIndexReader.hasDeletions()) and possibly (!searcher.getIndexReader.isCurrent()) thanks, Aleksander On Wed, 29 A

Re: Indexer / Searcher holding deleted files

2007-08-29 Thread Erick Erickson
I'd guess that you're not closing *all* of your searchers. Which is reinforced somewhat by the fact that bouncing your Tomcat instance cleans things up. Do you perhaps open a reader in the initialization code that never gets closed? Erick On 8/29/07, Aleksander M. Stensby <[EMAIL PROTECTED]> wrot