On Jan 19, 2005, at 12:14 PM, Cocula Remi wrote:
Hi ,
I remarked that after closing an IndexSearcher, queries on this Seacher will still run.
My question is : why not always closing an IndexSearcher ?
IndexSearcher.close:
public void close() throws IOException { if(closeReader) reader.close(); }
However, you open it with a String:
----------------------------------------------------- searcher = new IndexSearcher("c:\\tmp\\index");
Which should close the underlying IndexReader.
Maybe this was a bug that has since been fixed in CVS (which is the code I'm referencing)?
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]