You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by be...@apache.org on 2026/02/18 20:03:42 UTC

(lucene) 01/01: Updating competitive iterator when scorer is set

This is an automated email from the ASF dual-hosted git repository.

benwtrent pushed a commit to branch 10_4/sort/keyword-skipper-set-scorer
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit 5834b52e2cb3ad29262a1eb5490c3927445fc6ae
Author: Benjamin Trent <43...@users.noreply.github.com>
AuthorDate: Wed Feb 18 15:03:10 2026 -0500

    Updating competitive iterator when scorer is set
---
 .../org/apache/lucene/search/comparators/TermOrdValComparator.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/search/comparators/TermOrdValComparator.java b/lucene/core/src/java/org/apache/lucene/search/comparators/TermOrdValComparator.java
index e25dab5a462..7a971b40df7 100644
--- a/lucene/core/src/java/org/apache/lucene/search/comparators/TermOrdValComparator.java
+++ b/lucene/core/src/java/org/apache/lucene/search/comparators/TermOrdValComparator.java
@@ -395,7 +395,9 @@ public class TermOrdValComparator extends FieldComparator<BytesRef> {
     }
 
     @Override
-    public void setScorer(Scorable scorer) {}
+    public void setScorer(Scorable scorer) throws IOException {
+      updateCompetitiveIterator();
+    }
 
     private void updateCompetitiveIterator() throws IOException {
       if (competitiveState == null || hitsThresholdReached == false || bottomSlot == -1) {