Apache Lucene open-source search software
Adding a small comment that says people should use only one IndexSearches for all searches.
Daniel Naber360d91dde752
diff --git a/src/java/org/apache/lucene/search/IndexSearcher.java b/src/java/org/apache/lucene/search/IndexSearcher.javaindex adc0cce3c06..630eef261b5 100644--- a/src/java/org/apache/lucene/search/IndexSearcher.java+++ b/src/java/org/apache/lucene/search/IndexSearcher.java@@ -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;