Hi,
I created a simple synonm analyzer/filter and I was able to apply to the index fine, at least it looks like its applied fine, here's the cluster state extract,
"sports-2018.07.13": {
"state": "open",
"settings": {
"index": {
"creation_date": "1531510636226",
"uuid": "teSeXoRQS4WBkM7ylKzgdw",
"analysis": {
"filter": {
"synonym_filter": {
"type": "synonym",
"synonyms": [
"Manchester United, Man U, Man Utd"
],
"tokenizer": "keyword"
}
},
"analyzer": {
"synonym_analyzer": {
"filter": [
"synonym_filter"
],
"tokenizer": "keyword"
}
}
},
"number_of_replicas": "1",
"number_of_shards": "5",
"version": {
"created": "2040099"
}
}
},
"mappings": {...
I know for sure there are records because I see them in Kibana.
But when I query like this, I am not getting any results back,
{
"query":{
"filtered":{
"query":{
"multi_match":{
"query":"Man Utd",
"fields":[
"event.eventName"
],
"analyzer":"synonym_analyzer"
}
}
}
}
}
Any help is appreciated.
Thanks,
Arun