BooleanQuery
A Query that matches documents matching boolean combinations of other queries, e.g. [ ]s, PhraseQuerys or other BooleanQuerys.
Properties
Functions
Return a list of the clauses of this BooleanQuery.
Expert: Constructs an appropriate Weight implementation for this query.
Return the collection of queries for the given Occur.
Returns an iterator on the clauses in this query. It implements the Iterable interface to make it possible to do:
Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
Rewrite a single two clause disjunction query with terms to two term queries and a conjunction query using the inclusion–exclusion principle.
Recurse through the query tree, visiting any child queries.