This is an automated email from the ASF dual-hosted git repository. ishan pushed a commit to branch ishan/upgrade-to-lucene-10 in repository https://gitbox.apache.org/repos/asf/solr.git
commit 4415d9e6026b7b0db3225502b06ea2a7448b7564 Author: Christine Poerschke <[email protected]> AuthorDate: Fri Jul 25 17:27:41 2025 +0100 SOLR-17840, SOLR-17631: update LTRScoringQuery.java w.r.t. DisiPriorityQueue construction ref: Lucene PR 14070 --- solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.java b/solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.java index 11e10032ffc..c68dc38cfbf 100644 --- a/solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.java +++ b/solr/modules/ltr/src/java/org/apache/solr/ltr/LTRScoringQuery.java @@ -568,7 +568,7 @@ public class LTRScoringQuery extends Query implements Accountable { if (featureScorers.size() <= 1) { throw new IllegalArgumentException("There must be at least 2 subScorers"); } - subScorers = new DisiPriorityQueue(featureScorers.size()); + subScorers = DisiPriorityQueue.ofMaxSize(featureScorers.size()); for (final Scorer scorer : featureScorers) { final DisiWrapper w = new DisiWrapper(scorer, false /* impacts */); subScorers.add(w);
