Skip to content

Commit 8a62c62

Browse files
wpbonellijtibshirani
authored andcommitted
Update Fuzzy Query docs to clarify default behavior re max_expansions (#30819)
Stating that the Fuzzy Query generates "all possible" matching terms is misleading, given that the query's default behavior is to generate a maximum of 50 matching terms. (cherry picked from commit 345a007)
1 parent b388e13 commit 8a62c62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ The fuzzy query uses similarity based on Levenshtein edit distance.
55

66
==== String fields
77

8-
The `fuzzy` query generates all possible matching terms that are within the
8+
The `fuzzy` query generates matching terms that are within the
99
maximum edit distance specified in `fuzziness` and then checks the term
1010
dictionary to find out which of those generated terms actually exist in the
11-
index.
11+
index. The final query uses up to `max_expansions` matching terms.
1212

1313
Here is a simple example:
1414

0 commit comments

Comments
 (0)