Skip to content
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

Minor code fixes to remove code inconsistencies. #2206

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

navneet1v
Copy link
Collaborator

@navneet1v navneet1v commented Oct 13, 2024

Description

Minor code fixes which includes:

  • Passing correct score mode in NativeEnginekNNVectorQuery. NativeEnginekNNVectorQuery was always passing ScoreMode.COMPLETE ideally it should be the score mode which was passed to createWeight function.
  • Ensuring visitor is called in KnnQuery.

Both these fixes doesn't impact any query performance or fixes a bug, but these were inconsistencies in the code.

Related Issues

NA

Check List

  • New functionality includes testing.
  • Commits are signed per the DCO using --signoff.

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.

@navneet1v navneet1v changed the title Minor code fixes which includes: Minor code fixes to remove code inconsistencies. Oct 13, 2024
* Passing correct score mode in NativeEngineKNNVectorQuery
* Ensuring visitor is called in KnnQuery

Signed-off-by: Navneet Verma <[email protected]>
@navneet1v navneet1v merged commit f810493 into opensearch-project:main Oct 14, 2024
30 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 11, 2024
* Passing correct score mode in NativeEngineKNNVectorQuery
* Ensuring visitor is called in KnnQuery

Signed-off-by: Navneet Verma <[email protected]>
(cherry picked from commit f810493)
heemin32 pushed a commit that referenced this pull request Dec 11, 2024
* Passing correct score mode in NativeEngineKNNVectorQuery
* Ensuring visitor is called in KnnQuery

Signed-off-by: Navneet Verma <[email protected]>
(cherry picked from commit f810493)

Co-authored-by: Navneet Verma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants