-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make it possible to extend Patience/Seeded knn queries #14838
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
Conversation
nit: this also fixes a minor javadoc issue |
This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR. |
lucene/core/src/java/org/apache/lucene/search/PatienceKnnVectorQuery.java
Outdated
Show resolved
Hide resolved
This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to do this for SeededKnnVectorQuery
as well while we are at it :)
It follows the same pattern.
@benwtrent extended this to |
(cherry picked from commit 2b47cd3)
Currently
PatienceKnnQuery
extends and is constructed by anAbstractKnnQuery
, which is not public and therefore avoids other classes to extend it (as the related ctor is also package private).This simply makes
PatienceKnnQuery
constructors public and strict about the type of the wrapped query (float, byte, seeded knn queries),