Skip to content

Conversation

@thecoop
Copy link
Contributor

@thecoop thecoop commented Oct 24, 2025

Fix up the javadocs and constructor accessibility

@github-actions
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.

@thecoop thecoop added the skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check. label Oct 24, 2025
*/
protected Lucene104ScalarQuantizedVectorsWriter(
/** Sole constructor */
public Lucene104ScalarQuantizedVectorsWriter(
Copy link
Contributor

Choose a reason for hiding this comment

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

seems OK, but why make it public?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So the writer (and so the format it represents) can be created and used by other classes outside of Lucene104ScalarQuantizedVectorsFormat. The reader is already public.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok that is kind of a tautology - I will be like the 5-year-old here and ask so why do we want the writer to be created and used by other classes outside of Lucene104ScalarQuantizedVectorsFormat :) I really have no objection - just curious what motivated this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See elastic/elasticsearch#136627 (comment) - we want to use the new quantizer in some updated formats in Elasticsearch

Copy link
Contributor

Choose a reason for hiding this comment

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

got it thanks. Would love to see the bfloat16 support contributed here at some point!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:core/codecs skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants