diff --git a/docs/reference/query-languages/esql/_snippets/functions/examples/match_phrase.md b/docs/reference/query-languages/esql/_snippets/functions/examples/match_phrase.md index c93c22aab37e0..79ad01695fd96 100644 --- a/docs/reference/query-languages/esql/_snippets/functions/examples/match_phrase.md +++ b/docs/reference/query-languages/esql/_snippets/functions/examples/match_phrase.md @@ -1,6 +1,6 @@ % This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. -**Examples** +**Example** ```esql FROM books @@ -15,8 +15,4 @@ FROM books | 4977 | William Faulkner | | 5119 | William Faulkner | -```esql -null -``` - diff --git a/docs/reference/query-languages/esql/kibana/definition/functions/match_phrase.json b/docs/reference/query-languages/esql/kibana/definition/functions/match_phrase.json index 924afa7985ebf..128f11042ad0d 100644 --- a/docs/reference/query-languages/esql/kibana/definition/functions/match_phrase.json +++ b/docs/reference/query-languages/esql/kibana/definition/functions/match_phrase.json @@ -56,8 +56,7 @@ } ], "examples" : [ - "FROM books\n| WHERE MATCH_PHRASE(author, \"William Faulkner\")", - null + "FROM books\n| WHERE MATCH_PHRASE(author, \"William Faulkner\")" ], "preview" : true, "snapshot_only" : true diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchPhrase.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchPhrase.java index 7682fff3eda16..a068f28dfd716 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchPhrase.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchPhrase.java @@ -106,9 +106,7 @@ public class MatchPhrase extends FullTextFunction implements OptionalArgument, P All [`match_phrase`](/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md) query parameters are supported. `MATCH_PHRASE` returns true if the provided query matches the row.""", - examples = { - @Example(file = "match-phrase-function", tag = "match-phrase-with-field"), - @Example(file = "match-phrase-function", tag = "match-phrase-with-named-function-params") }, + examples = { @Example(file = "match-phrase-function", tag = "match-phrase-with-field") }, appliesTo = { @FunctionAppliesTo( lifeCycle = FunctionAppliesToLifecycle.COMING,