Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
opensearch-2.11.1
Describe the issue:
Hello OpenSearch Community,
I’m working on implementing a hybrid search in OpenSearch and encountering some difficulties with the correct syntax for filters in my subqueries. Below is my current query structure:
{
"query": {
"hybrid": {
"queries": [
{
"bool": {
"should": [
{
"multi_match": {
"query": "solar",
"type": "most_fields",
"fields": [
"og_title^3",
"og_description^2",
"name^2",
"href_filename^2",
"content"
]
}
}
],
"filter": [
{
"term": {
"content_type": "text"
}
}
]
}
},
{
"bool": {
"should": [
{
"neural": {
"embedding": {
"query_text": "solar",
"model_id": "LTZ1F40B3USp5Eb6uqGR",
"k": 5
}
}
}
],
"filter": [
{
"term": {
"content_type": "text"
}
}
]
}
}
]
}
},
"size": "10",
"_source": {
"excludes": [
"embedding"
]
}
}
While executing this query, I’m facing the following error:
TransportError(500, 'search_phase_execution_exception', 'Index 1 out of bounds for length 1')
I’m not sure if this is due to a syntax error in my query or a more complex issue. Any guidance on the correct syntax for filters in hybrid search subqueries or insights into this error would be greatly appreciated.
Thank you in advance for your help!
Configuration:
Relevant Logs or Screenshots: