Skip to content

Commit

Permalink
Update _analyzers/tokenizers/edge-n-gram.md
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Bower <nbower@amazon.com>
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
  • Loading branch information
kolchfa-aws and natebower authored Jan 3, 2025
1 parent afd1444 commit 24640f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _analyzers/tokenizers/edge-n-gram.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ PUT my-autocomplete-index/_doc/1?refresh
```
{% include copy-curl.html %}

This configuration ensures that the `edge_ngram` tokenizer breaks terms like Laptop into tokens such as `La`, `Lap`, and `Lapt`, allowing partial matches during search. At search time, the standard tokenizer simplifies queries while ensuring matches are case-insensitive because of the lowercase filter.
This configuration ensures that the `edge_ngram` tokenizer breaks terms like "Laptop" into tokens such as `La`, `Lap`, and `Lapt`, allowing partial matches during search. At search time, the `standard` tokenizer simplifies queries while ensuring that matches are case-insensitive because of the lowercase filter.

Searches for `laptop Pr` or `lap pr` now retrieve the relevant document based on partial matches:

Expand Down

0 comments on commit 24640f9

Please sign in to comment.