public class BooleanCondition extends Condition
Condition that matches documents matching boolean combinations of other queries, e.g. MatchConditions, RangeConditions or other BooleanConditions.| Constructor and Description |
|---|
BooleanCondition() |
| Modifier and Type | Method and Description |
|---|---|
BooleanCondition |
must(Condition... conditions)
Returns this builder with the specified mandatory conditions.
|
BooleanCondition |
not(Condition... conditions)
Returns this builder with the specified mandatory not conditions.
|
BooleanCondition |
should(Condition... conditions)
Returns this builder with the specified optional conditions.
|
boost, boostall, bigDecimalMapper, bigIntegerMapper, bitemporal, bitemporalMapper, blobMapper, bool, booleanMapper, build, classpathAnalyzer, contains, dateMapper, dateRange, dateRangeMapper, doubleMapper, field, floatMapper, fuzzy, geoBBox, geoDistance, geoDistanceSortField, geoPointMapper, index, index, inetMapper, integerMapper, longMapper, lucene, match, none, phrase, prefix, range, regexp, schema, search, snowballAnalyzer, stringMapper, textMapper, toString, uuidMapper, wildcardpublic BooleanCondition must(Condition... conditions)
conditions - The mandatory conditions to be added.public BooleanCondition should(Condition... conditions)
conditions - The optional conditions to be added.public BooleanCondition not(Condition... conditions)
conditions - The mandatory not conditions to be added.Copyright © 2016. All rights reserved.