Module
RangeQuery
RangeQuery ( field )
Matches documents with fields that have terms within a certain range.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | boost(boost) | Sets the boost value of the Query . |
Object | field(f) | The field to run the query against. |
Object | from(f) | The lower bound. Defaults to start from the first. |
Object | gt(val) | Greater than value. Same as setting from to the value, and include_lower to false, |
Object | gte(val) | Greater than or equal to value. Same as setting from to the value, and include_lower to true. |
Object | includeLower(trueFalse) | Should the first from (if set) be inclusive or not. Defaults to true |
Object | includeUpper(trueFalse) | Should the last to (if set) be inclusive or not. Defaults to true. |
Object | lt(val) | Less than value. Same as setting to to the value, and include_upper to false. |
Object | lte(val) | Less than or equal to value. Same as setting to to the value, and include_upper to true. |
Object | to(t) | The upper bound. Defaults to unbounded. |
String | toJSON() | Retrieves the internal query object. This is typically used by
internal API functions so use with caution. |
Method Detail
boost
Object boost ( boost )
Sets the boost value of the Query .
|
field
Object field ( f )
The field to run the query against.
|
from
Object from ( f )
The lower bound. Defaults to start from the first.
|
gt
Object gt ( val )
Greater than value. Same as setting from to the value, and
include_lower to false,
|
gte
Object gte ( val )
Greater than or equal to value. Same as setting from to the value,
and include_lower to true.
|
includeLower
Object includeLower ( trueFalse )
Should the first from (if set) be inclusive or not.
Defaults to true
|
includeUpper
Object includeUpper ( trueFalse )
Should the last to (if set) be inclusive or not. Defaults to true.
|
lt
Object lt ( val )
Less than value. Same as setting to to the value, and include_upper
to false.
|
lte
Object lte ( val )
Less than or equal to value. Same as setting to to the value,
and include_upper to true.
|
to
Object to ( t )
The upper bound. Defaults to unbounded.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|