Couldn't getting result on number search while searching through edge n gram Tokenizers

My setting is
{ "entity": { "settings": { "index": { "number_of_shards": "5", "provided_name": "entity", "creation_date": "1537872061172", "analysis": { "analyzer": { "autocomplete": { "filter": [ "lowercase" ], "tokenizer": "autocomplete" }, "autocomplete_search": { "tokenizer": "lowercase" } }, "tokenizer": { "autocomplete": { "token_chars": [ "letter", "digit" ], "min_gram": "1", "type": "edge_ngram", "max_gram": "120" } } }, "number_of_replicas": "1", "uuid": "4L3COvUMSmKEKc7JlC40OA", "version": { "created": "6030299" } } } } }
In mapping i have defined a field giving analyser.. i am getting expected result for the alphabet but for numbers its returning empty set.

Getting correct result for the following request -
{ "query":{ "match":{ "name.value":"vaibhav" } } }

Getting empty set for the following data even after data present which contains 201-
{ "query":{ "match":{ "name.value":"201" } } }

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