The reason you are told to use a single Searcher is because you should really be saving and reusing the IndexReader that the IndexSearcher holds. If you choose to save and resuse the IndexReader instead of the IndexSearcher, please disregard that advice. An IndexSearcher is but a thin wrapper around the IndexReader. So in your case, as Yonik said, once you reopen the IndexReader, making a new IndexSearcher is not painful.

- Mark
bq. ??"Make sure you only open one IndexSearcher, and share it among all of the 
threads that are doing searches -- this is safe, and it will minimize the number of files 
that are open concurently."??
So does the JavaDoc 
(http://lucene.apache.org/java/2_3_1/api/core/org/apache/lucene/search/IndexSearcher.html).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to