Hi All,
I'm trying to filter a multivalued field from ES but unfortunately, it's not working.
GET/_search{
"query": {
"bool": {
"must": {
"multi_match": {
"fields": [
"title^3",
"subTitle",
"keywords",
"pluralName"
],
"query": "fake"
}
},
"filter": {
"terms": {
"applicableDevices": [
"BOV950",
"SmartOven",
"BMC800",
"BOV900"
]
}
}
}
}
}
This is mapping in elasticsearch
"applicableDevices": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
Tried a lot but didn't the expected output.
can you guide or let me know the mistakes, please.
Thanks in advance.