| commit | fe64b04fda72a894f1f3bc4e2d5f61eef06c649c | [log] [tgz] | 
|---|---|---|
| author | Luca Cavanna <javanna@apache.org> | Fri Sep 13 08:58:10 2024 +0200 | 
| committer | GitHub <noreply@github.com> | Fri Sep 13 08:58:10 2024 +0200 | 
| tree | 1a77a6631f817b6a365cb8503a4916e46d278752 | |
| parent | 5045d3c67b18d23c534a32cee1d95827b0b7c482 [diff] | 
Replace docBase with actual docId in MaxScoreAccumulator (#13777) We have been encoding docBase and the score in MaxScoreAccumulator#accumulate. That makes the assumption that segments are going to be processed in doc order and implements global max score accounting across segments searched concurrently. With the introduction of intra-segment concurrency, the same segment may be seen multiple times, once per segment partition. Partitions are all going to have the same docBase, hence you may end up with topN results with higher docIds than expected, because the search early terminates before docs with same score and lower doc ids are seen. This commit encodes the docId in the accumulator in place of the docBase to resolve the described issue.

Apache Lucene is a high-performance, full-featured text search engine library written in Java.
This README file only contains basic setup instructions. For more comprehensive documentation, visit:
gradlew).We‘ll assume that you know how to get and set up the JDK - if you don’t, then we suggest starting at https://jdk.java.net/ and learning more about Java, before returning to this README.
Bug fixes, improvements and new features are always welcome! Please review the Contributing to Lucene Guide for information on contributing.
#lucene and #lucene-dev on freenode.net