JSON Queries
Overview
Use .
to search over text values nested inside JSON. For instance, the following query searches over a field with values like {"metadata": {"color": "white"}}
.
The following query builder functions support JSON fields: term, fuzzy term, phrase, fuzzy phrase, phrase prefix, and range.
Datetime Handling
When querying datetime values on JSON fields using JSON query syntax, always set is_datetime: true
to ensure the query is parsed as a date.
Was this page helpful?