Skip to content

Commit ac2cd7b

Browse files
committed
Fix invalid links to mapping-reference
1 parent 908885d commit ac2cd7b

File tree

2 files changed

+3
-3
lines changed
  • docs/reference/query-languages/esql/_snippets/functions/description
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function

2 files changed

+3
-3
lines changed

docs/reference/query-languages/esql/_snippets/functions/description/match.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
**Description**
44

5-
Use `MATCH` to perform a [match query](/reference/query-languages/query-dsl-match-query.md) on the specified field. Using `MATCH` is equivalent to using the `match` query in the Elasticsearch Query DSL. Match can be used on fields from the text family like [text](/reference/mapping-reference/text.md) and [semantic_text](/reference/mapping-reference/semantic_text.md#semantic-text), as well as other field types like keyword, boolean, dates, and numeric types. Match can use [function named parameters](/reference/query-languages/esql/esql-syntax.md#esql-function-named-params) to specify additional options for the match query. All [match query parameters](/reference/query-languages/query-dsl-match-query.md#match-field-params) are supported. For a simplified syntax, you can use the [match operator](/reference/query-languages/esql/esql-functions-operators.md#esql-search-operators) `:` operator instead of `MATCH`. `MATCH` returns true if the provided query matches the row.
5+
Use `MATCH` to perform a [match query](/reference/query-languages/query-dsl-match-query.md) on the specified field. Using `MATCH` is equivalent to using the `match` query in the Elasticsearch Query DSL. Match can be used on fields from the text family like [text](/reference/elasticsearch/mapping-reference/text.md) and [semantic_text](/reference/elasticsearch/mapping-reference/semantic_text.md#semantic-text), as well as other field types like keyword, boolean, dates, and numeric types. Match can use [function named parameters](/reference/query-languages/esql/esql-syntax.md#esql-function-named-params) to specify additional options for the match query. All [match query parameters](/reference/query-languages/query-dsl-match-query.md#match-field-params) are supported. For a simplified syntax, you can use the [match operator](/reference/query-languages/esql/esql-functions-operators.md#esql-search-operators) `:` operator instead of `MATCH`. `MATCH` returns true if the provided query matches the row.
66

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/DocsV3Support.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ private String getLink(String key) {
113113
// Various other remaining old asciidoc links
114114
// <<match-field-params,match query parameters>>
115115
return switch (parts[0]) {
116-
case "text" -> makeLink(key, "", "/reference/mapping-reference/text.md");
117-
case "semantic-text" -> makeLink(key, "", "/reference/mapping-reference/semantic_text.md");
116+
case "text" -> makeLink(key, "", "/reference/elasticsearch/mapping-reference/text.md");
117+
case "semantic-text" -> makeLink(key, "", "/reference/elasticsearch/mapping-reference/semantic_text.md");
118118
case "match-field-params" -> makeLink(key, "", "/reference/query-languages/query-dsl-match-query.md");
119119
default -> throw new IllegalArgumentException("Invalid link key <<" + key + ">>");
120120
};

0 commit comments

Comments
 (0)