Adding a small comment that says people should use only one IndexSearches for all searches.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150554 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2004-09-30 20:53:07 +00:00
parent d187ef261c
commit 360d91dde7
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ import org.apache.lucene.index.Term;
/** Implements search over a single IndexReader.
*
* <p>Applications usually need only call the inherited {@link #search(Query)}
* or {@link #search(Query,Filter)} methods.
* or {@link #search(Query,Filter)} methods. For performance reasons it is
* recommended to open only one IndexSearcher and use it for all of your searches.
*/
public class IndexSearcher extends Searcher {
IndexReader reader;