Class TermRangeQuery
java.lang.Object
com.couchbase.client.java.search.SearchQuery
com.couchbase.client.java.search.queries.TermRangeQuery
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.4.5
- Author:
- Michael Nitschinger
-
Field Summary
Fields inherited from class com.couchbase.client.java.search.SearchQuery
boost
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboost
(double boost) Sets the upper boundary of the range.Sets the upper boundary of the range, inclusive or not depending on the second parameter.Sets the lower boundary of the range.Sets the lower boundary of the range, inclusive or not depending on the second parameter.toCore()
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
-
Constructor Details
-
TermRangeQuery
public TermRangeQuery()
-
-
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:
-
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:
-
field
-
boost
- Overrides:
boost
in classSearchQuery
-
toCore
- Specified by:
toCore
in classSearchQuery
-