A newer version of this documentation is available.

View Latest

Match Query Syntax

    February 16, 2025
    + 12

    A term without any other syntax is interpreted as a match query for the term in the default field.

    The default field is _all.

    For example, pool performs a match query for the term pool.

    Example

    The following JSON object demonstrates specification of a match query:

    json
    { "match": "location hostel", "field": "reviews.content", "analyzer": "standard", "fuzziness": 2, "prefix_length": 4, "operator": "and" }