org.apache.lucene.search
public class BooleanQuery extends Query
| Nested Class Summary | |
|---|---|
| static class | BooleanQuery.TooManyClauses Thrown when an attempt is made to add more than {@link
#getMaxClauseCount()} clauses. |
| Field Summary | |
|---|---|
| static int | maxClauseCount
Default value is 1024. |
| Constructor Summary | |
|---|---|
| BooleanQuery() Constructs an empty boolean query. | |
| Method Summary | |
|---|---|
| void | add(Query query, boolean required, boolean prohibited) Adds a clause to a boolean query. |
| void | add(BooleanClause clause) Adds a clause to a boolean query. |
| Object | clone() |
| protected Weight | createWeight(Searcher searcher) |
| boolean | equals(Object o) Returns true iff o is equal to this. |
| BooleanClause[] | getClauses() Returns the set of clauses in this query. |
| static int | getMaxClauseCount() Return the maximum number of clauses permitted, 1024 by default.
|
| int | hashCode() Returns a hash code value for this object. |
| Query | rewrite(IndexReader reader) |
| static void | setMaxClauseCount(int maxClauseCount) Set the maximum number of clauses permitted. |
| String | toString(String field) Prints a user-readable version of this query. |
org.apache.lucene.maxClauseCount
system property to override.required which means that documents which do not
match this sub-query will not match the boolean query;
prohibited which means that documents which do
match this sub-query will not match the boolean query; or
required and
prohibited.
See Also: getMaxClauseCount
See Also: getMaxClauseCount
o is equal to this.