Skip to content

Commit c6df1d9

Browse files
authored
[DOCS] Query strings are normalized for fuzzy (~) operator (#73921) (#74645)
Notes that `fuzzy` queries made using the query string query's `~` operator are normalized. Closes #73299
1 parent 2523db1 commit c6df1d9

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ You can use this parameter query to search across multiple fields. See
142142
--
143143

144144
`fuzziness`::
145-
(Optional, string) Maximum edit distance allowed for matching. See <<fuzziness>>
146-
for valid values and more information.
145+
(Optional, string) Maximum edit distance allowed for fuzzy matching. For fuzzy
146+
syntax, see <<query-string-fuzziness>>.
147147

148148
`fuzzy_max_expansions`::
149149
(Optional, integer) Maximum number of terms to which the query expands for fuzzy

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ Use with caution!
116116
[[query-string-fuzziness]]
117117
====== Fuzziness
118118

119-
We can search for terms that are
120-
similar to, but not exactly like our search terms, using the ``fuzzy''
121-
operator:
119+
You can run <<query-dsl-fuzzy-query,`fuzzy` queries>> using the `~` operator:
122120

123121
quikc~ brwn~ foks~
124122

125-
This uses the
123+
For these queries, the query string is <<analysis-normalizers,normalized>>. If
124+
present, only certain filters from the analyzer are applied. For a list of
125+
applicable filters, see <<analysis-normalizers>>.
126+
127+
The query uses the
126128
{wikipedia}/Damerau-Levenshtein_distance[Damerau-Levenshtein distance]
127129
to find all terms with a maximum of
128130
two changes, where a change is the insertion, deletion

0 commit comments

Comments
 (0)