1. Docs
  2. Cloaked Search
  3. Usage
  4. Querying
  5. Match Phrase
  1. Docs
  2. Cloaked Search
  3. Usage
  4. Querying
  5. Match Phrase

Match Phrase Query

The match_phrase query analyzes the text and creates a phrase query out of the analyzed text. Requires the index_phrases option to be enabled on the given field.

Example

JSON
{ "query": { "match_phrase": { "body": "billy goat" } } }