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, withConstantScore
createQuery
BooleanJunction should(Query query)
query
- the query to matchBooleanJunction
MustJunction must(Query query)
query
- the query to matchMustJunction
boolean isEmpty()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved