Skip to content

Handle deleted documents for filter rewrite subaggregation optimization #19642

@jainankitk

Description

@jainankitk

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions