Skip to content

Commit

Permalink
Update Fuzzy Query docs to clarify default behavior re max_expansions (
Browse files Browse the repository at this point in the history
…#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)
  • Loading branch information
wpbonelli authored and jtibshirani committed Jul 30, 2018
1 parent 28af025 commit 24142e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/query-dsl/fuzzy-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ The fuzzy query uses similarity based on Levenshtein edit distance.

==== String fields

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

Here is a simple example:

Expand Down

0 comments on commit 24142e7

Please sign in to comment.