public interface BooleanJunction<T extends BooleanJunction> extends QueryCustomization<T>, Termination
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty() |
MustJunction |
must(Query query)
The boolean query results must (or must not) match the subquery
Call the .not() method to ensure results of the boolean query do NOT match the subquery.
|
BooleanJunction |
should(Query query)
The boolean query results should match the subquery
|
boostedTo, filteredBy, filteredBy, withConstantScorecreateQueryBooleanJunction should(Query query)
query - the query to match (nulls are ignored)BooleanJunctionMustJunction must(Query query)
query - the query to match (nulls are ignored)MustJunctionboolean isEmpty()
Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.