msokolov commented on code in PR #15676:
URL: https://github.com/apache/lucene/pull/15676#discussion_r2833221928
##########
lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraphSearcher.java:
##########
@@ -305,6 +305,13 @@ void searchLevel(
// We should allow exploring equivalent minAcceptedSimilarity values at
least once
boolean shouldExploreMinSim = true;
while (candidates.size() > 0 && results.earlyTerminated() == false) {
+ // Update the threshold dynamically from the collector to allow external
pruning.
+ float liveMinSimilarity = results.minCompetitiveSimilarity();
Review Comment:
what does this do when we are not using external pruning?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]