You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take match_phrase out of snapshot and make tech preview (elastic#128925)
* Take match_phrase out of snapshot and make tech preview
* Update docs/changelog/128925.yaml
* PR feedback
* Adding regenerated test data
* Update docs/changelog/128925.yaml
Co-authored-by: Carlos Delgado <[email protected]>
* [CI] Auto commit changes from spotless
* Checkstyle
* Correct docs
* Hopefully fix docs build
* Found one more bad docs link - here's hoping this now fixes the doc build
* OMG bitten by - vs _
---------
Co-authored-by: Carlos Delgado <[email protected]>
Co-authored-by: elasticsearchmachine <[email protected]>
Co-authored-by: Aurélien FOUCRET <[email protected]>
Copy file name to clipboardExpand all lines: docs/reference/query-languages/esql/_snippets/functions/parameters/match_phrase.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,5 +9,5 @@
9
9
: Value to find in the provided field.
10
10
11
11
`options`
12
-
: (Optional) MatchPhrase additional options as [function named parameters](/reference/query-languages/esql/esql-syntax.md#esql-function-named-params). See [match_phrase query](/reference/query-languages/query-dsl/query-dsl-match-query.md#query-dsl-match-query-phrase) for more information.
12
+
: (Optional) MatchPhrase additional options as [function named parameters](/reference/query-languages/esql/esql-syntax.md#esql-function-named-params). See [`match_phrase`](/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md) for more information.
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/plugin/MatchPhraseFunctionIT.java
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/FullTextWritables.java
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,12 @@ public static List<NamedWriteableRegistry.Entry> getNamedWriteables() {
24
24
entries.add(QueryString.ENTRY);
25
25
entries.add(Match.ENTRY);
26
26
entries.add(Kql.ENTRY);
27
+
entries.add(MatchPhrase.ENTRY);
27
28
28
29
if (EsqlCapabilities.Cap.TERM_FUNCTION.isEnabled()) {
29
30
entries.add(Term.ENTRY);
30
31
}
31
32
32
-
if (EsqlCapabilities.Cap.MATCH_PHRASE_FUNCTION.isEnabled()) {
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchPhrase.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,8 @@ public class MatchPhrase extends FullTextFunction implements OptionalArgument, P
94
94
returnType = "boolean",
95
95
preview = true,
96
96
description = """
97
-
Use `MATCH_PHRASE` to perform a <<query-dsl-match-query-phrase,match_phrase query>> on the specified field.
97
+
Use `MATCH_PHRASE` to perform a [`match_phrase`](/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md) on the
98
+
specified field.
98
99
Using `MATCH_PHRASE` is equivalent to using the `match_phrase` query in the Elasticsearch Query DSL.
99
100
100
101
MatchPhrase can be used on <<text, text>> fields, as well as other field types like keyword, boolean, or date types.
@@ -149,7 +150,7 @@ public MatchPhrase(
149
150
description = "Floating point number used to decrease or increase the relevance scores of the query. Defaults to 1.0."
150
151
) },
151
152
description = "(Optional) MatchPhrase additional options as <<esql-function-named-params,function named parameters>>."
152
-
+ " See <<query-dsl-match-query-phrase,match_phrase query>> for more information.",
153
+
+ " See [`match_phrase`](/reference/query-languages/query-dsl/query-dsl-match-query-phrase.md) for more information.",
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/fulltext/MatchPhraseTests.java
0 commit comments