Skip to content

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

Merged
merged 6 commits into from
Jun 25, 2025

Conversation

tteofili
Copy link
Contributor

Currently PatienceKnnQuery extends and is constructed by an AbstractKnnQuery, 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),

@tteofili
Copy link
Contributor Author

nit: this also fixes a minor javadoc issue

Copy link

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.

Copy link

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.

@github-actions github-actions bot added this to the 10.3.0 milestone Jun 24, 2025
Copy link
Member

@benwtrent benwtrent left a 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.

@tteofili tteofili changed the title Make it possible to extend PatienceKnnQuery Make it possible to extend Patience/Seeded knn queries Jun 24, 2025
@tteofili
Copy link
Contributor Author

@benwtrent extended this to SeededKnnVectorQuery in ecc37de (changed also PR description and changelog entry accordingly).

@tteofili tteofili merged commit 2b47cd3 into apache:main Jun 25, 2025
8 checks passed
tteofili added a commit that referenced this pull request Jun 25, 2025
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.

2 participants