1. Docs

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" } } }

Was this page helpful?