mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
[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:
parent
b8ea09825d
commit
139eabad2d
2 changed files with 8 additions and 6 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue