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 28681fc commit 978f713Copy full SHA for 978f713
hnswlib/hnswalg.h
@@ -317,7 +317,8 @@ class HierarchicalNSW : public AlgorithmInterface<dist_t> {
317
while (!candidate_set.empty()) {
318
std::pair<dist_t, tableint> current_node_pair = candidate_set.top();
319
320
- if ((-current_node_pair.first) > lowerBound && (top_candidates.size() == ef || has_deletions == false)) {
+ if ((-current_node_pair.first) > lowerBound &&
321
+ (top_candidates.size() == ef || (!isIdAllowed && !has_deletions))) {
322
break;
323
}
324
candidate_set.pop();
0 commit comments