PUT my-index-000001
{
"settings":{
"number_of_replicas": 0,
"analysis":{
"analyzer":{
"my_analyzer":{
"type":"custom",
"tokenizer":"keyword",
"filter":["lowercase"]
},
"search_time":
{ "type": "custom",
"tokenizer":"standard",
"filter":["lowercase"]
}
}
}
},
"mappings":{
"properties":{
"title": {
"type":"text",
"analyzer":"my_analyzer",
"search_analyzer": "search_time"
}
}
}
}
Index some random data for testing
PUT my-index-000001/_doc/1
{
"title":"Abhishek Kumar/31F7CB4AB7B391933E7D4EE8D2478EA4"
}
PUT my-index-000001/_doc/2
{
"title":"Abhishek Sharma/7FE41C9537A8C409C91ABA411B9C59EF"
}
PUT my-index-000001/_doc/3
{
"title":"Abhishek Kumar/73DBA25696A5CD0AE050B2099497692D"
}
Is there any wrong configuration in index settings