Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.11 on AWS
Describe the issue:
Hello, I am trying to use Hybrid Search for my Opensearch, but adding filters to that is not working and throwing me errors. Here is the query which I used. Can you help me add filter to this in the right way.
{
“_source”: {
“exclude”: “data_embedding”
},
“size”: 10,
“query”: {
“hybrid”: {
“queries”: [
{
“match”: {
“data”: {
“query”: “Business Process Management”
},
“filter”:[
{
“term”:{
“cid”:“1081952”
}
}
]
}
},
{
“neural”: {
“data_embedding”: {
“query_text”: “Business Process Management”,
“model_id”: “abcdefgh”,
“k”: 10,
“filter”: {
“bool”: {
“filter”: {
“term”: {
“cid”: “text”
}
}
}
}
}
}
}
]
}
}
}
Configuration:
Relevant Logs or Screenshots: