You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2021/11/18 15:53:03 UTC

[lucene] branch branch_9_0 updated: LUCENE-10242: The TopScoreDocCollector::createSharedManager should use ScoreDoc instead of FieldDoc (#450)

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

jpountz pushed a commit to branch branch_9_0
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9_0 by this push:
     new de4402c  LUCENE-10242: The TopScoreDocCollector::createSharedManager should use ScoreDoc instead of FieldDoc (#450)
de4402c is described below

commit de4402cf622921141aa90ceca826979c14cf0db7
Author: Andriy Redko <dr...@gmail.com>
AuthorDate: Thu Nov 18 10:35:59 2021 -0500

    LUCENE-10242: The TopScoreDocCollector::createSharedManager should use ScoreDoc instead of FieldDoc (#450)
    
    Signed-off-by: Andriy Redko <an...@aiven.io>
---
 lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java b/lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java
index 87d2a27..0f7b526 100644
--- a/lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java
+++ b/lucene/core/src/java/org/apache/lucene/search/TopScoreDocCollector.java
@@ -242,7 +242,7 @@ public abstract class TopScoreDocCollector extends TopDocsCollector<ScoreDoc> {
    * shared {@link MaxScoreAccumulator} to propagate the minimum score accross segments
    */
   public static CollectorManager<TopScoreDocCollector, TopDocs> createSharedManager(
-      int numHits, FieldDoc after, int totalHitsThreshold) {
+      int numHits, ScoreDoc after, int totalHitsThreshold) {
     return new CollectorManager<>() {
 
       private final HitsThresholdChecker hitsThresholdChecker =