-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[ES|QL] Add MATCH_PHRASE #127661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[ES|QL] Add MATCH_PHRASE #127661
Conversation
dabef06
to
13ccda7
Compare
Hi @kderusso, I've created a changelog YAML for you. |
8f01955
to
d02864e
Compare
|
||
MatchPhrase can use <<esql-function-named-params,function named parameters>> to specify additional options for the | ||
match_phrase query. | ||
All <<query-dsl-match-query-phrase,match_phrase>> query parameters are supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: When I try to link to the correct doclink here, I get:
Invalid link key <<match-phrase-field-params,match_phrase query parameters>>
|
||
**Description** | ||
|
||
Use `MATCH_PHRASE` to perform a [match_phrase query](/reference/query-languages/query-dsl/query-dsl-match-query.md#query-dsl-match-query-phrase) on the specified field. Using `MATCH_PHRASE` is equivalent to using the `match_phrase` query in the Elasticsearch Query DSL. MatchPhrase can be used on [text](/reference/elasticsearch/mapping-reference/text.md) fields, as well as other field types like keyword, boolean, or date types. MatchPhrase is not supported for [semantic_text](/reference/elasticsearch/mapping-reference/semantic-text.md) or numeric types. MatchPhrase can use [function named parameters](/reference/query-languages/esql/esql-syntax.md#esql-function-named-params) to specify additional options for the match_phrase query. All [match_phrase](/reference/query-languages/query-dsl/query-dsl-match-query.md#query-dsl-match-query-phrase) query parameters are supported. `MATCH_PHRASE` returns true if the provided query matches the row. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why we're picking up match
query docs in the generated documentation here, we should be picking up query-dsl-match-query-phrase.md
.
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Pinging @elastic/search-eng (Team:SearchOrg) |
Pinging @elastic/search-relevance (Team:Search - Relevance) |
Adds
MATCH_PHRASE
support to ES|QL.Some examples of how to use
MATCH_PHRASE
: