Skip to content

Commit 3f5bc5a

Browse files
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
1 parent 44a2ef3 commit 3f5bc5a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/reference/query-dsl/query-string-query.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ as the first character of the query string. Defaults to `true`.
9494
`analyze_wildcard`::
9595
(Optional, Boolean) If `true`, the query attempts to analyze wildcard terms in
9696
the query string. Defaults to `false`.
97+
Note that, in case of `true`, only queries that end with a `*`
98+
are fully analyzed. Queries that start with `*` or have it in the middle
99+
are only <<analysis-normalizers,normalized>>.
97100

98101
`analyzer`::
99102
(Optional, string) <<analysis,Analyzer>> used to convert text in the

docs/reference/query-dsl/simple-query-string-query.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ AND of AND Hungary`.
7878
`analyze_wildcard`::
7979
(Optional, Boolean) If `true`, the query attempts to analyze wildcard terms in
8080
the query string. Defaults to `false`.
81+
Note that, in case of `true`, only queries that end with a `*`
82+
are fully analyzed. Queries that start with `*` or have it in the middle
83+
are only <<analysis-normalizers,normalized>>.
8184

8285
`analyzer`::
8386
(Optional, string) <<analysis,Analyzer>> used to convert text in the

0 commit comments

Comments
 (0)