kkewwei opened a new issue, #13554: URL: https://github.com/apache/lucene/issues/13554
### Description In #13199, we add `isEstimatedPointCountGreaterThanOrEqualTo` to dynamic pruning in the point value, there also too many function call `estimatePointCount` directly, dynamic pruning is not used. https://github.com/apache/lucene/blob/295c5d35767c2af9361f79dfc11511ad5ababd81/lucene/core/src/java/org/apache/lucene/index/PointValues.java#L387 One of my ideas is pruning from BooleanScorerSupplier: https://github.com/apache/lucene/blob/295c5d35767c2af9361f79dfc11511ad5ababd81/lucene/core/src/java/org/apache/lucene/search/BooleanScorerSupplier.java#L318 ``` long leadCost = Long.MAX_VALUE; leadCost = subs.get(Occur.MUST).stream().mapToLong(ScorerSupplier::cost()).min().orElse(Long.MAX_VALUE); leadCost = subs.get(Occur.FILTER).stream().mapToLong(ScorerSupplier::cost()).min().orElse(leadCost); ``` If it's a good idea, if is, I'm pleasure to implement. -- 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: issues-unsubscr...@lucene.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org