Re: MaxScoreBulkScorer increased latency for a extreme test case (many SHOULD and each SHOULD clause matches all docs)

2024-09-18 Thread Rui Wu
Hi Adrien, Thanks for your help and putting up a fix! Another experiment I did without your PR: if the 12 SHOULD clauses are changed to 12 MUST clauses, the problem is the same: it collects 3.6M docs on Lucene911 but 1001 docs on Lucene97. Does this data point align with how MaxScoreBulkScorer w

Re: MaxScoreBulkScorer increased latency for a extreme test case (many SHOULD and each SHOULD clause matches all docs)

2024-09-18 Thread Adrien Grand
Thank you, this last comment was helpful and helped me understand the problem. I opened a PR at https://github.com/apache/lucene/pull/13800. On Tue, Sep 17, 2024 at 7:45 PM Rui Wu wrote: > Another information is that, in Lucene97, this query (12 SHOULD clauses) > collected 1001 results; while in