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

Fix KNNScorer to apply boost #1403

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

bugmakerrrrrr
Copy link
Contributor

Description

When using boost along with the KNNQuery, the boost is not applied.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed as 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.

@heemin32
Copy link
Collaborator

Could you update CHANGELOG?

heemin32
heemin32 previously approved these changes Jan 22, 2024
Copy link
Collaborator

@heemin32 heemin32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6abec19) 85.01% compared to head (2501134) 84.99%.

❗ Current head 2501134 differs from pull request most recent head 3104ca7. Consider uploading reports for the commit 3104ca7 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1403      +/-   ##
============================================
- Coverage     85.01%   84.99%   -0.02%     
+ Complexity     1275     1274       -1     
============================================
  Files           167      167              
  Lines          5179     5179              
  Branches        483      483              
============================================
- Hits           4403     4402       -1     
  Misses          572      572              
- Partials        204      205       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: panguixin <panguixin@bytedance.com>
Signed-off-by: panguixin <panguixin@bytedance.com>
Copy link
Member

@martin-gaievski martin-gaievski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you

@heemin32 heemin32 merged commit fcbfef1 into opensearch-project:main Jan 23, 2024
47 checks passed
@heemin32
Copy link
Collaborator

Thanks for the contribution!

opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 23, 2024
* apply boost

Signed-off-by: panguixin <panguixin@bytedance.com>

* add change log

Signed-off-by: panguixin <panguixin@bytedance.com>

---------

Signed-off-by: panguixin <panguixin@bytedance.com>
(cherry picked from commit fcbfef1)
heemin32 pushed a commit that referenced this pull request Jan 23, 2024
* apply boost

Signed-off-by: panguixin <panguixin@bytedance.com>

* add change log

Signed-off-by: panguixin <panguixin@bytedance.com>

---------

Signed-off-by: panguixin <panguixin@bytedance.com>
(cherry picked from commit fcbfef1)

Co-authored-by: panguixin <panguixin@bytedance.com>
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.

3 participants