Class NumericRangeQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.NumericRangeQuery
-
public class NumericRangeQuery extends SearchQuery
A FTS query that matches documents on a range of values. At least one bound is required, and the inclusiveness of each bound can be configured.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description NumericRangeQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumericRangeQueryboost(double boost)NumericRangeQueryfield(String field)protected voidinjectParams(JsonObject input)NumericRangeQuerymax(double max)Sets the upper boundary of the range.NumericRangeQuerymax(double max, boolean inclusive)Sets the upper boundary of the range, inclusive or not depending on the second parameter.NumericRangeQuerymin(double min)Sets the lower boundary of the range.NumericRangeQuerymin(double min, boolean inclusive)Sets the lower boundary of the range, inclusive or not depending on the second parameter.-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, injectParamsAndBoost, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
-
-
-
-
Method Detail
-
min
public NumericRangeQuery min(double min, boolean inclusive)
Sets the lower boundary of the range, inclusive or not depending on the second parameter.
-
min
public NumericRangeQuery min(double min)
Sets the lower boundary of the range. The lower boundary is considered inclusive by default on the server side.- See Also:
min(double, boolean)
-
max
public NumericRangeQuery max(double max, boolean inclusive)
Sets the upper boundary of the range, inclusive or not depending on the second parameter.
-
max
public NumericRangeQuery max(double max)
Sets the upper boundary of the range. The upper boundary is considered exclusive by default on the server side.- See Also:
max(double, boolean)
-
field
public NumericRangeQuery field(String field)
-
boost
public NumericRangeQuery boost(double boost)
- Overrides:
boostin classSearchQuery
-
injectParams
protected void injectParams(JsonObject input)
- Specified by:
injectParamsin classSearchQuery
-
-