iprithv opened a new pull request, #15991:
URL: https://github.com/apache/lucene/pull/15991

   ## Description
   
   Implements https://github.com/apache/lucene/issues/15139: when a 
`BooleanQuery` has a `FILTER` clause that constrains the **primary** index sort 
field, rewrite to an internal query that can restrict the main clause’s 
`BulkScorer` to a contiguous doc ID range derived from the filter (when safe).
   
   ## Benchmarking
   
   
   Benchmark | Baseline | Candidate | Delta
   -- | -- | -- | --
   benchmarkSortedTopScores | 1.323 ± 0.020 ops/ms | 2.247 ± 0.015 ops/ms | 
~+70%
   benchmarkSortedComplete | 1.487 ± 0.018 ops/ms | 2.064 ± 0.128 ops/ms | ~+39%
   benchmarkSortedCompleteNoScores | 3.172 ± 0.051 ops/ms | 4.788 ± 0.019 
ops/ms | ~+51%
   benchmarkUnsortedTopScores | 1.258 ± 0.041 ops/ms | 1.350 ± 0.036 ops/ms | 
sanity/no regression signal
   
   ## Note
   
   - Term path only applies when doc values and postings agree on a dense 
range; otherwise per-leaf fallback to the original boolean bulk scorer 
preserves correctness.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to