Re: When is the right time to close() a Searcher?

2003-11-21 Thread Otis Gospodnetic
If you are going to be searching the same index, just keep that instance of IndexSearcher around, and close it only when you no longer need it, or when you detect that the index changed (e.g. docs added/deleted), at which point you will want to close the old IndexSearcher (or just throw it away and

When is the right time to close() a Searcher?

2003-11-20 Thread Christoph Meier
Hi it look's like a cannot close a org.apache.lucene.search.Searcher before iterating over the Hits (for most of you this is obvious?) however, if i do not close the Searcher, everything is fine (concerning the search an its results) but some ressources cannot be released as i read here in this