Index Analysis vs search analysis

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.