Mapping :
"analysis": {
"analyzer": {
"itda": {
"filter": ["lowercase"],
"tokenizer": "keyword"
}
}
}
}
"store_all_string_fields_template" : {
"match" : "*",
"match_matching_type" : "string",
"mapping" : {
"store" : "yes",
"index_options" : "docs",
"omit_norms" : "true",
"analyzer": "itda",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}
}
}
Indexed Data : Collector (field name) and TestCollector (field value)
Query :
1. On not_analyzed field
"bool" : {
"should" : {
"wildcard" : {
"Collector.raw" : "TestCollec*"
}
}
Giving proper results
2. On analyzed field
"bool" : {
"should" : {
"wildcard" : {
"Collector" : "TestCollec*"
}
}
Problem : No results
From reading docs it seems wildcard queries does not worked on analyzed fields. It works only on not_analyzed fields thats why its working in 1st query.
Is there any way we can enable wildcard query on analyzed field ? Please suggest.