From 2eb4e109cedf5380c38bd61240432efa9f1a8cce Mon Sep 17 00:00:00 2001 From: Mayya Sharipova Date: Tue, 11 Feb 2025 15:24:04 -0500 Subject: [PATCH] Clarify analyze_wildcard param in queries Clarify that analyze_wildcard param in query_string and simple_query_string queries behaves differently depending where "*" is. Closes #121281 --- docs/reference/query-dsl/query-string-query.asciidoc | 3 +++ docs/reference/query-dsl/simple-query-string-query.asciidoc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/reference/query-dsl/query-string-query.asciidoc b/docs/reference/query-dsl/query-string-query.asciidoc index b45247ace3735..4cb32a5e94110 100644 --- a/docs/reference/query-dsl/query-string-query.asciidoc +++ b/docs/reference/query-dsl/query-string-query.asciidoc @@ -94,6 +94,9 @@ as the first character of the query string. Defaults to `true`. `analyze_wildcard`:: (Optional, Boolean) If `true`, the query attempts to analyze wildcard terms in the query string. Defaults to `false`. +Note that, in case of `true`, only queries that end with a `*` +are fully analyzed. Queries that start with `*` or have it in the middle +are only <>. `analyzer`:: (Optional, string) <> used to convert text in the diff --git a/docs/reference/query-dsl/simple-query-string-query.asciidoc b/docs/reference/query-dsl/simple-query-string-query.asciidoc index 7927f36367dac..3b7b28d176a68 100644 --- a/docs/reference/query-dsl/simple-query-string-query.asciidoc +++ b/docs/reference/query-dsl/simple-query-string-query.asciidoc @@ -78,6 +78,9 @@ AND of AND Hungary`. `analyze_wildcard`:: (Optional, Boolean) If `true`, the query attempts to analyze wildcard terms in the query string. Defaults to `false`. +Note that, in case of `true`, only queries that end with a `*` +are fully analyzed. Queries that start with `*` or have it in the middle +are only <>. `analyzer`:: (Optional, string) <> used to convert text in the