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
-
-
Field Summary
-
Fields inherited from class com.couchbase.client.java.search.SearchQuery
boost
-
-
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)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.com.couchbase.client.core.api.search.CoreSearchQuerytoCore()-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, 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
-
toCore
public com.couchbase.client.core.api.search.CoreSearchQuery toCore()
- Specified by:
toCorein classSearchQuery
-
-