I have an index of text in my elastic server. I have implemented an ngram tokenizer like this:
"analysis": {
"analyzer": {
"ngram_analyzer": {
"type": "custom",
"tokenizer": "ngram_tokenizer"
}
},
"tokenizer": {
"ngram_tokenizer": {
"type": "ngram",
"min_gram": "3",
"max_gram": "7"
}
}
},
Lets say my data is
"Hello beautiful world ell"
When i place a query match "Hell" I want it to only find me the first word (Hello) and not also the word ell, so basickly i dont want it to "break" my search pattern just to find it in my data as is (with 4 charecters and not below)
Thank you