Matches documents with fields that have terms within a certain range. The type of the Sensei query depends on the field type, for string
fields, the TermRangeQuery
, while for number/date fields, the query is a NumericRangeQuery
. The following example returns all documents where age
is between 10
and 20
:
The range
query top level parameters include:
Name | Description |
---|---|
from | The lower bound. Defaults to start from the first. |
to | The upper bound. Defaults to unbounded. |
include_lower | Should the first from (if set) be inclusive or not. Defaults to true |
include_upper | Should the last to (if set) be inclusive or not. Defaults to true . |
|
|
|
|
|
|
|
|
|
|