You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hybrid Search returns incorrect results when the search pipeline is missing. In cases where multiple sub-queries are used in Hybrid Search and no search pipeline is specified for normalization and combination, OpenSearch still returns results. However, instead of combining the results from the sub-queries as expected, it returns all matched results from each sub-query separately. Additionally, no error is raised to indicate that the search pipeline is missing, leading to potentially misleading outcomes.
{
"took": 38,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 5,
"relation": "eq"
},
"max_score": 2.261763,
"hits": [
{
"_index": "my-nlp-index",
"_id": "3",
"_score": -9.549512E9,
"_source": {
"text": "People line the stands which advertise Freemont 's orthopedics , a cowboy rides a light brown bucking bronco .",
"id": "2664027527.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "3",
"_score": -4.4224404E9,
"_source": {
"text": "People line the stands which advertise Freemont 's orthopedics , a cowboy rides a light brown bucking bronco .",
"id": "2664027527.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "3",
"_score": 2.261763,
"_source": {
"text": "People line the stands which advertise Freemont 's orthopedics , a cowboy rides a light brown bucking bronco .",
"id": "2664027527.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "5",
"_score": 2.1210756,
"_source": {
"text": "A rodeo cowboy , wearing a cowboy hat , is being thrown off of a wild white horse .",
"id": "2691147709.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "4",
"_score": 0.87546873,
"_source": {
"text": "A man who is riding a wild horse in the rodeo is very near to falling off .",
"id": "4427058951.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "3",
"_score": -4.4224404E9,
"_source": {
"text": "People line the stands which advertise Freemont 's orthopedics , a cowboy rides a light brown bucking bronco .",
"id": "2664027527.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "4",
"_score": 0.015851954,
"_source": {
"text": "A man who is riding a wild horse in the rodeo is very near to falling off .",
"id": "4427058951.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "2",
"_score": 0.015748847,
"_source": {
"text": "A wild animal races across an uncut field with a minimal amount of trees .",
"id": "1775029934.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "5",
"_score": 0.01517796,
"_source": {
"text": "A rodeo cowboy , wearing a cowboy hat , is being thrown off of a wild white horse .",
"id": "2691147709.jpg"
}
},
{
"_index": "my-nlp-index",
"_id": "1",
"_score": 0.013272899,
"_source": {
"text": "A West Virginia university women 's basketball team , officials , and a small gathering of fans are in a West Virginia arena .",
"id": "4319130149.jpg"
}
}
]
}
}
What is the expected behavior?
An error should be returned saying the search pipeline is missing for the hybrid search.
What is your host/environment?
Opensearch version 2.18.0.0
Do you have any screenshots?
N/A
Do you have any additional context?
N/A
The text was updated successfully, but these errors were encountered:
What is the bug?
Hybrid Search returns incorrect results when the search pipeline is missing. In cases where multiple sub-queries are used in Hybrid Search and no search pipeline is specified for normalization and combination, OpenSearch still returns results. However, instead of combining the results from the sub-queries as expected, it returns all matched results from each sub-query separately. Additionally, no error is raised to indicate that the search pipeline is missing, leading to potentially misleading outcomes.
How can one reproduce the bug?
What is the expected behavior?
An error should be returned saying the search pipeline is missing for the hybrid search.
What is your host/environment?
Opensearch version 2.18.0.0
Do you have any screenshots?
N/A
Do you have any additional context?
N/A
The text was updated successfully, but these errors were encountered: