I have followed this https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-index-search-time.html
"settings": {
"analysis": {
"analyzer": {
"autocomplete":
{
"tokenizer":"mytoken",
"filter":["lowercase"]
}
},
"tokenizer": {
"mytoken":
{
"type": "edge_ngram",
"min_gram": 2,
"max_gram": 10,
"token_chars": [
"letter"
]
}
}
}
},
"mappings": {
"properties": {
"title": {
"type": "text",
"analyzer": "autocomplete"
}
}
PUT my_index/_doc/1
{
"title": "The QUICK brown foxes jumped over the dog!"
}
the tokenization would be [th,the,qu,qui,quic,quick,br,bro,brow,brown,.....]
my aim was that if a user search QUICK fox then it should not return anything beause it is not match with tokenization value i.e quick foxes