-
Notifications
You must be signed in to change notification settings - Fork 98
Make k and num_candidates optional in kNN queries #2490
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
Conversation
The validation results appear to be worse than what we have on main currently, so I will investigate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KnnSearch
is good, but there are some discrepancies on KnnQuery
:
- it must extend
QueryBase
to have the_name
andboost
fields (the latter should be removed from the type) num_candidates
should be optionalk
andinner_hits
should be removed.
Can you add these fixes?
8fb436a
to
c07ed5e
Compare
Thanks, done! The CI failure is addressed in #2492. |
Following you can find the validation results for the APIs you have changed.
You can validate these APIs yourself by using the |
* Make k and num_candidates optional in kNN queries * Address review comments (cherry picked from commit 4718254)
This reflects the changes made in 8.13: elastic/elasticsearch#101209. The current situation forces setting values: https://discuss.elastic.co/t/knnquery-in-java-client/356645/1