Skip to content

Commit 0db12c3

Browse files
HUSTERGSgesong.samuel
andauthored
Using BatchScoreBulkScorer on CombinedFieldQuery (#14854)
Co-authored-by: gesong.samuel <[email protected]>
1 parent fe2389a commit 0db12c3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lucene/CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ Optimizations
192192

193193
* GITHUB#14772: Implement ConstantScoreScorer#nextDocsAndScores. (Ge Song)
194194

195+
* GITHUB#14854: Using BatchScoreBulkScorer on CombinedFieldQuery. (Ge Song)
196+
195197
Bug Fixes
196198
---------------------
197199
* GITHUB#14654: ValueSource.fromDoubleValuesSource(dvs).getSortField() would throw errors when

lucene/core/src/java/org/apache/lucene/search/CombinedFieldQuery.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,11 @@ public Scorer get(long leadCost) throws IOException {
395395
public long cost() {
396396
return finalCost;
397397
}
398+
399+
@Override
400+
public BulkScorer bulkScorer() throws IOException {
401+
return new BatchScoreBulkScorer(get(Long.MAX_VALUE));
402+
}
398403
};
399404
}
400405

0 commit comments

Comments
 (0)