public interface BooleanJunction<T extends BooleanJunction> extends QueryCustomization<T>, Termination
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty() |
MustJunction |
must(org.apache.lucene.search.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(org.apache.lucene.search.Query query)
The boolean query results should match the subquery
|
boostedTo, filteredBy, withConstantScorecreateQueryBooleanJunction should(org.apache.lucene.search.Query query)
query - the query to match (nulls are ignored)BooleanJunctionMustJunction must(org.apache.lucene.search.Query query)
query - the query to match (nulls are ignored)MustJunctionboolean isEmpty()
Copyright © 2006–2017 Hibernate. All rights reserved.