Skip to content

Commit dc752ce

Browse files
committed
more comment fixes
1 parent a80c3fb commit dc752ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraphSearcher.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ public static void search(
9797
throws IOException {
9898
int filteredDocCount = 0;
9999
if (acceptOrds instanceof BitSet bitSet) {
100-
// Use approximate cardinality as this is good enough, but ensure we don't
101-
// exceed the graph
100+
// Use approximate cardinality as this is good enough, but ensure we don't exceed the graph
102101
// size as that is illogical
103102
filteredDocCount = Math.min(bitSet.approximateCardinality(), graph.size());
104103
}
@@ -234,8 +233,7 @@ int[] findBestEntryPoint(RandomVectorScorer scorer, HnswGraph graph, KnnCollecto
234233
for (int level = graph.numLevels() - 1; level >= 1; level--) {
235234
foundBetter = true;
236235
visited.set(currentEp);
237-
// Keep searching the given level until we stop finding a better candidate entry
238-
// point
236+
// Keep searching the given level until we stop finding a better candidate entry point
239237
while (foundBetter) {
240238
foundBetter = false;
241239
graphSeek(graph, level, currentEp);

0 commit comments

Comments
 (0)