Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
New
-
Yes
Description
When using CoveringQuery In Elasticsearch with terms_set query, it takes too much time in CoveringScore and major cost in matain the DisiPriorityQueue: subScorers.
But when minimumNumberMatch is ConstantLongValuesSource, we can use WANDScorer to optimize it.
i do a mini benchmark with 1m docs, which code in LUCENE-10367.patch TestCoveringQuery.java testRandomBench()
it shows:
TEST: WAND elapsed 67ms
TEST: NOWAND elapsed 163ms
My testing environment is macBook with Intel Core i7 16GMem.