File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
core/src/java/org/apache/lucene/search Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,9 @@ Optimizations
200200
201201* GITHUB#15261: Implement longValues for MultiFieldNormValues to speedup CombinedQuery (Ge Song)
202202
203+ * GITHUB#15343: Ensure that `AcceptDocs#cost()` only ever calls `BitSets#cardinality()`
204+ once per instance to avoid redundant computation. (Ben Trent)
205+
203206Bug Fixes
204207---------------------
205208* GITHUB#14161: PointInSetQuery's constructor now throws IllegalArgumentException
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ public Bits bits() throws IOException {
190190 @ Override
191191 public int cost () throws IOException {
192192 createBitSetAcceptDocsIfNecessary ();
193- return acceptBitSet . cardinality () ;
193+ return cardinality ;
194194 }
195195
196196 @ Override
You can’t perform that action at this time.
0 commit comments