-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] hybrid query support on index aliases with filter use cases #627
Comments
@vamshin Please look into this issue as well |
@ksingh17i can you add the steps of reproudcing the error |
Hi @navneet1v I already added them in the ticket details, the only important step is to add an index alias with filter and then use that alias to run hybrid queries.
|
This situation is similar to, if say, we create a search pipeline with a combination of Filter Query processor and Normalization processor. And then try to run hybrid query (match & knn) |
@ksingh17i the reason this happens is because Hybrid Query clause needs to be a top level query clause and these filter processors and index alias wraps the whole query into another compound query clause which breaks the hybrid query clause. We need to do more deep-dive to identify how to unwrap the query clauses. This will take some time. In meantime I would suggest not using Filter Query processor and index alias filter and put the filters in the query itself. Example:
|
Created this as a feature request and we are prioritizing for 2.15 version. |
@martin-gaievski lets close this issue as the feature is merged. @vamshin this feature is released in 2.13 version. |
What is the bug?
We are getting following error when running hybrid queries on index alias. The same query works fine if index name is used.
This issue occurs only when index alias is created with filters, here is the alias definition for our index alias
How can one reproduce the bug?
What is the expected behavior?
Irrespective of using the index name or alias name in the hybrid query, open search should return the same results.
What is your host/environment?
AWS Managed OpenSearch 2.11
Do you have any screenshots?
Do you have any additional context?
The query runs fine if index alias is created without any filters.
The text was updated successfully, but these errors were encountered: