elastic / elasticsearch-java

Official Elasticsearch Java Client
Apache License 2.0
409 stars 239 forks source link

Missing parameter K in KnnQuery #861

Closed drndos closed 3 weeks ago

drndos commented 1 month ago

Java API client version

8.15.0

Java version

21

Elasticsearch Version

8.15

Problem description

In issue #774 you have removed the k parameter from KnnQuery as per documentation https://www.elastic.co/guide/en/elasticsearch/reference/8.13/query-dsl-knn-query.html but the k parameter was reintroduced in 8.15 https://www.elastic.co/guide/en/elasticsearch/reference/8.15/query-dsl-knn-query.html Could you please update the specs and client so it reflects the docs of 8.15 ?

Thank you

l-trotta commented 1 month ago

Hello! Thank you for reporting this, we already took care of it, it will be in the next patch