Skip to content

Conversation

thecoop
Copy link
Contributor

@thecoop thecoop commented Sep 16, 2025

It's a bit nasty that several things in Lucene check for a specific FieldsReader implementation (a nested class, no less). Instead, have a method on KnnVectorsReader that implementations can use to unwrap readers for a field, without referring to specific implementations.

Copy link
Contributor

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 11.0.0 milestone Sep 16, 2025

/** VectorReader that can wrap multiple delegate readers, selected by field. */
public static class FieldsReader extends KnnVectorsReader implements HnswGraphProvider {
private static class FieldsReader extends KnnVectorsReader implements HnswGraphProvider {
Copy link
Member

Choose a reason for hiding this comment

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

Since the covering class is lucene.experimental I think this will be OK.

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