Phrase

Phrase query

/ Phrase, / Query

Phrase query #

Returns documents that contain the exact sequence of terms, in order, with no other terms in between (modulo slop). The text is analyzed before matching, like the match query.

The query’s native name is phrase; the match_phrase spelling deserializes to the same query — an accepted alias, not a different feature.

Inside a nested query: supported — the phrase, including its slop, must be satisfied by ONE array element; terms keep query order.

...