From 693dde69cd5895ff433f25d19bb6e312622ea082 Mon Sep 17 00:00:00 2001 From: Martin Gaievski Date: Mon, 25 Nov 2024 11:33:01 -0800 Subject: [PATCH] Expand the log message for case when we reached the threshold of hits Signed-off-by: Martin Gaievski --- .../search/collector/HybridTopScoreDocCollector.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/neuralsearch/search/collector/HybridTopScoreDocCollector.java b/src/main/java/org/opensearch/neuralsearch/search/collector/HybridTopScoreDocCollector.java index 4ab10bceb..7a3585cf9 100644 --- a/src/main/java/org/opensearch/neuralsearch/search/collector/HybridTopScoreDocCollector.java +++ b/src/main/java/org/opensearch/neuralsearch/search/collector/HybridTopScoreDocCollector.java @@ -116,7 +116,11 @@ public void collect(int doc) throws IOException { continue; } if (hitsThresholdChecker.isThresholdReached() && totalHitsRelation == TotalHits.Relation.EQUAL_TO) { - log.info("reached hits threshold check"); + log.info( + "hit count threshold reached: total hits={}, threshold={}, action=updating_results", + totalHits, + hitsThresholdChecker.getTotalHitsThreshold() + ); totalHitsRelation = TotalHits.Relation.GREATER_THAN_OR_EQUAL_TO; } collectedHitsPerSubQuery[i]++;