[DOCS] Query strings are normalized for fuzzy (~) operator (#73921)

Notes that `fuzzy` queries made using the query string query's `~`
operator are normalized.

Closes #73299
This commit is contained in:
James Rodewig 2021-06-28 13:13:41 -04:00 committed by GitHub
parent b8ea09825d
commit 139eabad2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View file

@ -142,8 +142,8 @@ You can use this parameter query to search across multiple fields. See
-- --
`fuzziness`:: `fuzziness`::
(Optional, string) Maximum edit distance allowed for matching. See <<fuzziness>> (Optional, string) Maximum edit distance allowed for fuzzy matching. For fuzzy
for valid values and more information. syntax, see <<query-string-fuzziness>>.
`fuzzy_max_expansions`:: `fuzzy_max_expansions`::
(Optional, integer) Maximum number of terms to which the query expands for fuzzy (Optional, integer) Maximum number of terms to which the query expands for fuzzy

View file

@ -116,13 +116,15 @@ Use with caution!
[[query-string-fuzziness]] [[query-string-fuzziness]]
====== Fuzziness ====== Fuzziness
We can search for terms that are You can run <<query-dsl-fuzzy-query,`fuzzy` queries>> using the `~` operator:
similar to, but not exactly like our search terms, using the ``fuzzy''
operator:
quikc~ brwn~ foks~ quikc~ brwn~ foks~
This uses the For these queries, the query string is <<analysis-normalizers,normalized>>. If
present, only certain filters from the analyzer are applied. For a list of
applicable filters, see <<analysis-normalizers>>.
The query uses the
{wikipedia}/Damerau-Levenshtein_distance[Damerau-Levenshtein distance] {wikipedia}/Damerau-Levenshtein_distance[Damerau-Levenshtein distance]
to find all terms with a maximum of to find all terms with a maximum of
two changes, where a change is the insertion, deletion two changes, where a change is the insertion, deletion