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