Skip to content

Commit

Permalink
search on proper level when connecting graph components (#13846)
Browse files Browse the repository at this point in the history
  • Loading branch information
msokolov authored and Michael Sokolov committed Oct 3, 2024
1 parent 8c9204d commit fae57d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ private boolean connectComponents(int level) throws IOException {
RandomVectorScorer scorer = scorerSupplier.scorer(c.start());
// find the closest node in the largest component to the lowest-numbered node in this
// component that has room to make a connection
graphSearcher.searchLevel(beam, scorer, 0, eps, hnsw, notFullyConnected);
graphSearcher.searchLevel(beam, scorer, level, eps, hnsw, notFullyConnected);
boolean linked = false;
while (beam.size() > 0) {
int c0node = beam.popNode();
Expand Down

0 comments on commit fae57d0

Please sign in to comment.