summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp b/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp
index 5b78a792311..5382d3695e1 100644
--- a/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp
+++ b/searchlib/src/vespa/searchlib/tensor/hnsw_index.cpp
@@ -442,6 +442,7 @@ HnswIndex::internal_complete_add(uint32_t docid, PreparedAddDoc &op)
uint32_t subspace = 0;
for (auto nodeid : nodeids) {
internal_complete_add_node(nodeid, docid, subspace, op.nodes[subspace]);
+ ++subspace;
}
}