public class DateRangeQuery extends SearchQuery
String
form) can be customized (see dateTimeParser(String)
).Constructor and Description |
---|
DateRangeQuery() |
Modifier and Type | Method and Description |
---|---|
DateRangeQuery |
boost(double boost) |
DateRangeQuery |
dateTimeParser(String dateTimeParser)
The name of the date/time parser to use to interpret
start(String) and end(String) . |
DateRangeQuery |
end(Instant end)
Sets the upper boundary of the range.
|
DateRangeQuery |
end(Instant end,
boolean inclusive)
Sets the upper boundary of the range, inclusive or not depending on the second parameter.
|
DateRangeQuery |
end(String end)
Sets the upper boundary of the range.
|
DateRangeQuery |
end(String end,
boolean inclusive)
Sets the upper boundary of the range, inclusive or not depending on the second parameter.
|
DateRangeQuery |
field(String field) |
protected void |
injectParams(JsonObject input) |
DateRangeQuery |
start(Instant start)
Sets the lower boundary of the range.
|
DateRangeQuery |
start(Instant start,
boolean inclusive)
Sets the lower boundary of the range, inclusive or not depending on the second parameter.
|
DateRangeQuery |
start(String start)
Sets the lower boundary of the range.
|
DateRangeQuery |
start(String start,
boolean inclusive)
Sets the lower boundary of the range, inclusive or not depending on the second parameter.
|
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, injectParamsAndBoost, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
public DateRangeQuery start(String start, boolean inclusive)
public DateRangeQuery start(String start)
start(String, boolean)
public DateRangeQuery end(String end, boolean inclusive)
public DateRangeQuery end(String end)
end(String, boolean)
public DateRangeQuery start(Instant start, boolean inclusive)
public DateRangeQuery start(Instant start)
public DateRangeQuery end(Instant end, boolean inclusive)
public DateRangeQuery end(Instant end)
public DateRangeQuery dateTimeParser(String dateTimeParser)
start(String)
and end(String)
. Should not
be modified when passing in Instant
.public DateRangeQuery field(String field)
public DateRangeQuery boost(double boost)
boost
in class SearchQuery
protected void injectParams(JsonObject input)
injectParams
in class SearchQuery
Copyright © 2021 Couchbase, Inc.. All rights reserved.