Filter by Dense or Sparse Vector


According to we can sort by cosine similarity of vectors. But how can we filter by vector values?

For example I want to filter all docs that index number 10 in the vector is less than X number. In other words filter to the docs where my_vector_field[10] < X.

How can this be done?

filtering by individual values is not supported. We have decided not to support sorting as well.
Currently vectors can be used only in script_score query using predefined vector functions.
However, if you think that accessing individual fields is a valid use case, please submit a new issue describing your use case in more detail.

Ok cool. Thanks for responding. I will submit a new issue.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.