A newer version of this documentation is available.

View Latest

Phrase Query

      +

      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.

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

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