@InterfaceStability.Uncommitted @InterfaceAudience.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.
Constructor and Description |
---|
NumericRangeQuery() |
Modifier and Type | Method and Description |
---|---|
NumericRangeQuery |
boost(double boost) |
NumericRangeQuery |
field(String field) |
protected void |
injectParams(JsonObject input)
Override to inject query-specific parameters when doing the
SearchQuery.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.
|
injectParamsAndBoost, toString
public NumericRangeQuery min(double min, boolean inclusive)
Sets the lower boundary of the range, inclusive or not depending on the second parameter.
public NumericRangeQuery min(double min)
Sets the lower boundary of the range. The lower boundary is considered inclusive by default on the server side.
min(double, boolean)
public NumericRangeQuery max(double max, boolean inclusive)
Sets the upper boundary of the range, inclusive or not depending on the second parameter.
public NumericRangeQuery max(double max)
Sets the upper boundary of the range. The upper boundary is considered exclusive by default on the server side.
max(double, boolean)
public NumericRangeQuery field(String field)
public NumericRangeQuery boost(double boost)
boost
in class AbstractFtsQuery
protected void injectParams(JsonObject input)
AbstractFtsQuery
Override to inject query-specific parameters when doing the SearchQuery.export()
.
injectParams
in class AbstractFtsQuery
input
- the prepared JsonObject
that will represent the query.Copyright © 2015 Couchbase, Inc.