Class NumericRangeQuery
java.lang.Object
com.couchbase.client.java.search.queries.AbstractFtsQuery
com.couchbase.client.java.search.queries.NumericRangeQuery
@Uncommitted @Public public class NumericRangeQuery extends AbstractFtsQuery
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
Modifier and Type Method Description NumericRangeQuery
boost(double boost)
NumericRangeQuery
field(String field)
protected void
injectParams(JsonObject input)
Override to inject query-specific parameters when doing theSearchQuery.export()
.NumericRangeQuery
max(double max)
Sets the upper boundary of the range.NumericRangeQuery
max(double max, boolean inclusive)
Sets the upper boundary of the range, inclusive or not depending on the second parameter.NumericRangeQuery
min(double min)
Sets the lower boundary of the range.NumericRangeQuery
min(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.queries.AbstractFtsQuery
injectParamsAndBoost, toString
-
Constructor Details
-
NumericRangeQuery
public NumericRangeQuery()
-
-
Method Details
-
min
Sets the lower boundary of the range, inclusive or not depending on the second parameter. -
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
Sets the upper boundary of the range, inclusive or not depending on the second parameter. -
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
-
boost
- Overrides:
boost
in classAbstractFtsQuery
-
injectParams
Description copied from class:AbstractFtsQuery
Override to inject query-specific parameters when doing theSearchQuery.export()
.- Specified by:
injectParams
in classAbstractFtsQuery
- Parameters:
input
- the preparedJsonObject
that will represent the query.
-