Open jmazanec15 opened 7 months ago
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 fields
in the search payload. See:
curl -X GET "localhost:9200/target_index/_search?pretty" -H 'Content-Type: application/json' -d'
{
"fields": ["*"],
"query": {
"match_all": {}
}
}
'
@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