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

Replace KnnQueryVector by KnnFloatVectorQuery for Lucene knn #767

Conversation

martin-gaievski
Copy link
Member

Description

KnnQueryVector has been marked as deprecated in Lucene 9.5 and new implementation created instead. We need to follow Lucene path as we do return their implementation directly.

Issues Resolved

#766

Check List

  • All tests pass
  • 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.

Signed-off-by: Martin Gaievski <gaievski@amazon.com>
@martin-gaievski martin-gaievski added Maintenance Add support for new versions of OpenSearch/Dashboards from upstream backport 2.x labels Feb 17, 2023
@martin-gaievski martin-gaievski requested a review from a team February 17, 2023 02:11
@codecov-commenter
Copy link

codecov-commenter commented Feb 17, 2023

Codecov Report

Merging #767 (4d568b8) into main (b8f2deb) will decrease coverage by 0.26%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##               main     #767      +/-   ##
============================================
- Coverage     85.40%   85.14%   -0.26%     
+ Complexity     1084     1079       -5     
============================================
  Files           151      151              
  Lines          4370     4370              
  Branches        390      390              
============================================
- Hits           3732     3721      -11     
- Misses          463      472       +9     
- Partials        175      177       +2     
Impacted Files Coverage Δ
...rg/opensearch/knn/index/query/KNNQueryFactory.java 90.00% <100.00%> (ø)
...va/org/opensearch/knn/index/KNNCircuitBreaker.java 60.00% <0.00%> (-20.00%) ⬇️
...ain/java/org/opensearch/knn/index/KNNSettings.java 84.37% <0.00%> (-2.35%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@martin-gaievski martin-gaievski merged commit 71d7232 into opensearch-project:main Feb 17, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 17, 2023
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
(cherry picked from commit 71d7232)
martin-gaievski added a commit that referenced this pull request Feb 17, 2023
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
(cherry picked from commit 71d7232)

Co-authored-by: Martin Gaievski <gaievski@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Maintenance Add support for new versions of OpenSearch/Dashboards from upstream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants