We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2bc2ad commit 8c6960bCopy full SHA for 8c6960b
hnswlib/hnswalg.h
@@ -271,7 +271,7 @@ namespace hnswlib {
271
272
std::pair<dist_t, tableint> current_node_pair = candidate_set.top();
273
274
- if ((-current_node_pair.first) > lowerBound && top_candidates.size() == ef) {
+ if ((-current_node_pair.first) > lowerBound && (top_candidates.size() == ef || has_deletions == false)) {
275
break;
276
}
277
candidate_set.pop();
0 commit comments