Skip to content

Commit

Permalink
Modify test backward codec writer 94 to add node 0
Browse files Browse the repository at this point in the history
Signed-off-by: John Mazanec <jmazane@amazon.com>
  • Loading branch information
jmazanec15 committed Dec 30, 2022
1 parent 82dea49 commit 3d27f6b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,10 +639,7 @@ public void addValue(int docID, Object value) throws IOException {
assert docID > lastDocID;
docsWithField.add(docID);
vectors.add(copyValue(vectorValue));
if (node > 0) {
// start at node 1! node 0 is added implicitly, in the constructor
hnswGraphBuilder.addGraphNode(node, vectorValue);
}
hnswGraphBuilder.addGraphNode(node, vectorValue);
node++;
lastDocID = docID;
}
Expand Down

0 comments on commit 3d27f6b

Please sign in to comment.