Skip to content

Commit

Permalink
Merge pull request weaviate#4807 from weaviate/fix_skipping_deleted_n…
Browse files Browse the repository at this point in the history
…odes

fix: skipping deleted nodes when finding entry point for node
  • Loading branch information
jeroiraz authored May 15, 2024
2 parents 073654e + 5512876 commit dfe5afe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adapters/repos/db/vector/hnsw/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ func (h *hnsw) findBestEntrypointForNode(currentMaxLevel, targetLevel int,
var e storobj.ErrNotFound
if errors.As(err, &e) {
h.handleDeletedNode(e.DocID)
continue
}
} else {
dist, ok, err = h.distBetweenNodeAndVec(entryPointID, nodeVec)
Expand Down

0 comments on commit dfe5afe

Please sign in to comment.