A newer version of this documentation is available.

View Latest

Phrase Query

    March 9, 2025
    + 12

    A phrase query searches for terms occurring at the specified position and offsets. It performs an exact term-match for all the phrase-constituents without using an analyzer.

    json
    { "terms": ["nice", "view"], "field": "reviews.content" }

    A demonstration of the phrase query using the Java SDK can be found in Searching from the SDK.