Hi there,
I have a condition, if I search with either reg A or regulation A, it should return the documents which contain both reg A and regulation A as results. For which, I have used the synonym filter, but it is not working as expected.
And my mapping is,
{
"guru" : {
"settings" : {
"index" : {
"number_of_shards" : "1",
"provided_name" : "guru",
"creation_date" : "1567754848669",
"analysis" : {
"filter" : {
"my_ascii_folding" : {
"type" : "asciifolding",
"preserve_original" : "true"
},
"synonym" : {
"type" : "synonym",
"expand" : "true",
"synonyms" : [
"reg=> regulation"
]
}
},
"analyzer" : {
"folding" : {
"filter" : [
"lowercase",
"my_ascii_folding",
"synonym"
],
"type" : "standard",
"tokenizer" : "standard"
}
}
},
"number_of_replicas" : "1",
"uuid" : "HmcBL7tlSqaeILuYvE20HQ",
"version" : {
"created" : "7030199"
}
}
}
}
}
Any solutions?
Hey, @Andrei_Stefan you have any ideas?