1
0
Эх сурвалжийг харах

Remove null example for match_phrase (#129173)

Ioana Tagirta 4 сар өмнө
parent
commit
15dd896a61

+ 1 - 5
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
-```
-
 

+ 1 - 2
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

+ 1 - 3
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,