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

Refactor and javadoc update for KNN vector writer classes #13548

Merged
merged 6 commits into from
Jul 8, 2024

Conversation

zhaih
Copy link
Contributor

@zhaih zhaih commented Jul 7, 2024

Description

  • Refactor logic of translating old ord to new ord
  • Javadoc for Lucene99HnswVectorsFormat is a bit outdated after we separate FlatVectorsFormat out, updated

@zhaih zhaih added this to the 9.12.0 milestone Jul 7, 2024
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.

Overall looks good. Some minor concerns to ensure the new method isn't abused.

@@ -356,7 +356,7 @@ BufferedUpdate next() throws IOException {
}
}

BytesRef nextTerm() throws IOException {
private BytesRef nextTerm() throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

seems like an extra thing out of nowhere? Its probably ok in this commit, just struck me as a strange inclusion :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I just edited it when I was going over the code, thought it should be fine leaving it here :)

@zhaih zhaih merged commit ceb4539 into apache:main Jul 8, 2024
3 checks passed
@zhaih zhaih deleted the updateVector branch July 8, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants