Could not find similarity in KnnQuery in Java Client?

Could not find similarity in KnnQuery in Java Client?

Just giving detail

Does not has similarity attribute as below link has in their sample query

POST image-index/_search
{
  "knn": {
    "field": "image-vector",
    "query_vector": [1, 5, -20],
    "k": 5,
    "num_candidates": 50,
    "similarity": 36,
    "filter": {
      "term": {
        "file-type": "png"
      }
    }
  },
  "fields": ["title"],
  "_source": false
}
1 Like

Any update on this ?? We are planning to upgrade our elasticsearch version from 8.7v to above to get benefit from "similarity" score functionality.

1 Like

still not available in 8.10.3

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