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

Support kNN vectors in disk usage action #88785

Merged
merged 18 commits into from
Jul 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
version
  • Loading branch information
ywelsch committed Mar 31, 2022
commit c5e31f4e45173fa00d89efc2e5a1fe7895127d5b
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private PerFieldDiskUsage(StreamInput in) throws IOException {
pointsBytes = in.readVLong();
normsBytes = in.readVLong();
termVectorsBytes = in.readVLong();
if (in.getVersion().onOrAfter(Version.V_8_2_0)) {
if (in.getVersion().onOrAfter(Version.V_8_3_0)) {
knnVectorsBytes = in.readVLong();
}
}
Expand All @@ -202,7 +202,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeVLong(pointsBytes);
out.writeVLong(normsBytes);
out.writeVLong(termVectorsBytes);
if (out.getVersion().onOrAfter(Version.V_8_2_0)) {
if (out.getVersion().onOrAfter(Version.V_8_3_0)) {
out.writeVLong(knnVectorsBytes);
}
}
Expand Down