Apache Lucene open-source search software
improve javadoc by mentioning Filter PR: 32365 Submitted by: Paul Elschot
Daniel Naber918572be8630
diff --git a/src/java/org/apache/lucene/search/BooleanQuery.java b/src/java/org/apache/lucene/search/BooleanQuery.javaindex 49bc532902c..a7e7690bd53 100644--- a/src/java/org/apache/lucene/search/BooleanQuery.java+++ b/src/java/org/apache/lucene/search/BooleanQuery.java@@ -26,13 +26,18 @@ import org.apache.lucene.index.IndexReader;public class BooleanQuery extends Query {/** The maximum number of clauses permitted. Default value is 1024.- * Use the <code>org.apache.lucene.maxClauseCount</code> system property to override.- * <p>TermQuery clauses are generated from for example prefix queries and fuzzy queries.- * Each TermQuery needs some buffer space during search, so this parameter indirectly- * controls the maximum buffer requirements for query search. Normally the buffers- * are allocated by the JVM. When using for example- * {@link org.apache.lucene.store.MMapDirectory} the buffering is left to the- * operating system.</p>+ * Use the <code>org.apache.lucene.maxClauseCount</code> system property+ * to override.+ * <p>TermQuery clauses are generated from for example prefix queries and+ * fuzzy queries. Each TermQuery needs some buffer space during search,+ * so this parameter indirectly controls the maximum buffer requirements for+ * query search.+ * <p>When this parameter becomes a bottleneck for a Query one can use a+ * Filter. For example instead of a {@link RangeQuery} one can use a+ * {@link RangeFilter}.+ * <p>Normally the buffers are allocated by the JVM. When using for example+ * {@link org.apache.lucene.store.MMapDirectory} the buffering is left to+ * the operating system.*/public static int maxClauseCount =Integer.parseInt(System.getProperty("org.apache.lucene.maxClauseCount",