Created
September 20, 2021 17:16
-
-
Save loretoparisi/dc1cdd4dea29a83e326a81a00fae2775 to your computer and use it in GitHub Desktop.
Elastic Search Auto Complete Analyzer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"aliases": {}, | |
"mappings": { | |
"properties": { | |
"text": { | |
"type": "text", | |
"analyzer": "autocomplete" | |
} | |
} | |
}, | |
"settings": { | |
"analysis": { | |
"filter": { | |
"autocomplete_filter": { | |
"type": "ngram", | |
"min_gram": 1, | |
"max_gram": 60 | |
} | |
}, | |
"analyzer": { | |
"autocomplete": { | |
"type": "custom", | |
"tokenizer": "standard", | |
"filter": [ | |
"lowercase", | |
"autocomplete_filter" | |
] | |
} | |
} | |
}, | |
"index.max_ngram_diff": 60 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related SF question