shubhamvishu commented on issue #15561:
URL: https://github.com/apache/lucene/issues/15561#issuecomment-3762117354
Maybe we can change it to something like :
```java
@Override
public int cost() throws IOException {
if (acceptBitSet != null) {
return cardinality;
}
if (liveDocs == null && iterator() instanceof BitSetIterator
bitSetIterator) {
return bitSetIterator.getBitSet().approximateCardinality();
}
return Math.toIntExact(iterator().cost());
}
```
--
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]