Class: DateRangeQuery

SearchQuery. DateRangeQuery

<private> new DateRangeQuery()

Members

boost

boost defines the amount to boost this query.

dateTimeParser

dateTimeParser specifies the parser to use against dates in the query.

field

Specifies the field to query.

<private> toJSON

Serializes this query to JSON for network dispatch.

Methods

end(end, inclusive) → {SearchQuery.DateRangeQuery}

end defines the upper bound of this date range query.

Parameters:
Name Type Description
end string | Date
inclusive boolean
Returns:
Type
SearchQuery.DateRangeQuery

start(start, inclusive) → {SearchQuery.DateRangeQuery}

start defines the lower bound of this date range query.

Parameters:
Name Type Description
start string | Date
inclusive boolean
Returns:
Type
SearchQuery.DateRangeQuery