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

[Backport 2.x] Support script score when doc value is disabled (#1573) #1587

Conversation

bugmakerrrrrr
Copy link
Contributor

Description

backport 1573

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.

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 90.24390% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 84.95%. Comparing base (551068b) to head (1dd8426).

Files Patch % Lines
...opensearch/knn/index/KNNVectorDVLeafFieldData.java 76.92% 2 Missing and 1 partial ⚠️
...opensearch/knn/index/KNNVectorScriptDocValues.java 96.42% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x    #1587      +/-   ##
============================================
+ Coverage     84.86%   84.95%   +0.09%     
- Complexity     1343     1353      +10     
============================================
  Files           167      167              
  Lines          5516     5549      +33     
  Branches        548      555       +7     
============================================
+ Hits           4681     4714      +33     
  Misses          602      602              
  Partials        233      233              

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

@navneet1v
Copy link
Collaborator

Will wait for 2.14 increment PR(#1574) to be merged before we can merge this PR.

@navneet1v navneet1v changed the title Support script score when doc value is disabled (#1573) [Backport 2.x] Support script score when doc value is disabled (#1573) Apr 2, 2024
navneet1v
navneet1v previously approved these changes Apr 3, 2024
@navneet1v
Copy link
Collaborator

@jmazanec15 can you look into this PR. Its a backport PR. wasn't merged because 2.x branch was not upgraded to 2.14

jmazanec15
jmazanec15 previously approved these changes Apr 3, 2024
@navneet1v
Copy link
Collaborator

@bugmakerrrrrr can you raise the PR again by resolving the conflicts.

)

* support script score when doc value is disabled

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

* add test

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

* apply review comments

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

* fix test

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

---------

Signed-off-by: panguixin <panguixin@bytedance.com>
(cherry picked from commit 771c4b5)
@navneet1v
Copy link
Collaborator

@jmazanec15 can you approve the code, so that code can be merged.

@navneet1v navneet1v merged commit d4e91e0 into opensearch-project:2.x Apr 9, 2024
84 checks passed
jmazanec15 pushed a commit to jmazanec15/k-NN-1 that referenced this pull request May 7, 2024
) (opensearch-project#1587)

* support script score when doc value is disabled

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

* add test

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

* apply review comments

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

* fix test

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

---------

Signed-off-by: panguixin <panguixin@bytedance.com>
(cherry picked from commit 771c4b5)
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