Is your feature request related to a problem? Please describe
Currently, PointRangeTree subaggregation optimization is skipped if there are any deleted documents. But, since we explicitly create bitset of matching docIds for each bucket in case of sub-aggregations, deleted documents can be filtered out. Related PR - #17447
Describe the solution you'd like
Filter out deleted documents while creating the bitSet for each range
Related component
Search:Aggregations
Describe alternatives you've considered
No response
Additional context
No response