A newer version of this documentation is available.

View Latest

Term Range Query

    March 23, 2025
    + 12

    A term range query finds documents containing a term in the specified field within the specified range. Define the endpoints using the fields min and max. You can omit one endpoint, but not both. The inclusive_min and inclusive_max properties control whether or not the endpoints are included or excluded. By default, min is inclusive and max is exclusive.

    json
    { "min": "foo", "max": "foof", "inclusive_min": false, "inclusive_max": false, "field": "desc" }