Class DateRangeQuery
java.lang.Object
com.couchbase.client.java.search.SearchQuery
com.couchbase.client.java.search.queries.DateRangeQuery
A FTS query that matches documents on a range of dates. At least one bound is required, and the parser
to use for the date (in
String
form) can be customized (see dateTimeParser(String)
).- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Field Summary
Fields inherited from class com.couchbase.client.java.search.SearchQuery
boost
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboost
(double boost) dateTimeParser
(String dateTimeParser) The name of the date/time parser to use to interpretstart(String)
andend(String)
.Sets the upper boundary of the range.Sets the upper boundary of the range, inclusive or not depending on the second parameter.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.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
-
DateRangeQuery
public DateRangeQuery()
-
-
Method Details
-
start
Sets the lower boundary of the range, inclusive or not depending on the second parameter. -
start
Sets the lower boundary of the range. The lower boundary is considered inclusive by default on the server side.- See Also:
-
end
Sets the upper boundary of the range, inclusive or not depending on the second parameter. -
end
Sets the upper boundary of the range. The upper boundary is considered exclusive by default on the server side.- See Also:
-
start
Sets the lower boundary of the range, inclusive or not depending on the second parameter. -
start
Sets the lower boundary of the range. The lower boundary is considered inclusive by default on the server side. -
end
Sets the upper boundary of the range, inclusive or not depending on the second parameter. -
end
Sets the upper boundary of the range. The upper boundary is considered exclusive by default on the server side. -
dateTimeParser
The name of the date/time parser to use to interpretstart(String)
andend(String)
. Should not be modified when passing inInstant
. -
field
-
boost
- Overrides:
boost
in classSearchQuery
-
toCore
- Specified by:
toCore
in classSearchQuery
-