Skip to content

Support KnnQuery's method_parameters and rescore properties #1407

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

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Feb 3, 2025

Description

Support KnnQuery's method_parameters and rescore properties. This is manually implemented feature to 2.x as it can not be generated or auto-backported from main without introducing breaking changes. There will be follow up PRs to fix the spec and regenerate the class in main.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@VijayanB
Copy link
Member

VijayanB commented Feb 3, 2025

Signed-off-by: Thomas Farr <[email protected]>
@Xtansia
Copy link
Collaborator Author

Xtansia commented Feb 3, 2025

Thanks for raising this PR. Can we also include this property too? https://github.com/opensearch-project/k-NN/blob/d22f1aeee7a44f5e88c9693b84ffd81a7cc312ae/src/main/java/org/opensearch/knn/index/query/KNNQueryBuilder.java#L112

Have added it

@VijayanB
Copy link
Member

VijayanB commented Feb 4, 2025

Can this be merged and add new release artifact? Thank you

@Xtansia Xtansia merged commit fdfcccc into opensearch-project:2.x Feb 4, 2025
49 checks passed
@Xtansia Xtansia deleted the feat/knn-query branch February 4, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants