term
, phrase
, wildcard
, boolean operators
, range operators
, and special character escaping
are supported.
Parameters
Parameter | Description | Type | Required | Default |
---|---|---|---|---|
query | Query string | object | ✓ | |
defaultField | Default field name to apply query | string | ||
skipSyntax | Skip syntax check for special characters | boolean | false |
A query to a collection with
object
field type requires special handling.Examples
Basic query
field:value
syntax:
skipSyntax
option:
Exact match query
skipSyntax
option:
Range query
Range queries allow you to search for values within a specific range using range query syntax.Supported field types
Range queries work with the following field types:long
double
datetime
keyword
Syntax
- Inclusive range:
[min TO max]
includes both lower and upper bounds. - Exclusive range:
{min TO max}
excludes both lower and upper bounds.