-
Notifications
You must be signed in to change notification settings - Fork 126
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
[BUG] Indices that include knn_vector field fail when search includes "fields" parameter #1633
Comments
This is not a bug, you are trying to use efficient knn filtering, but used the nmslib engine, which does not support it. If you change the engine to lucene or faiss it should work as expected. Here is the documentation for it: https://opensearch.org/docs/latest/search-plugins/knn/filter-search-knn/ |
@OliverLiebmann this is a bug - it doesnt have anything to do with filtering - more so use of
|
@jmazanec15 feel free to assign to me I understand the required fix. |
Thanks @samuel-oci ! Assigned |
@samuel-oci are you taking a look at this one? |
I will start working on this task |
Description
Right now, for indices that contain a
knn_vector
, we are not able to support thefields
option in queries. This is because in KNNVectorFieldType, we do not implement ValuesFetcher. We should implement it similar to the geo types that handle arrays directly.Repro steps
The text was updated successfully, but these errors were encountered: