Skip to content

Improve validation of filter(s)/nested aggregations #23290

@jpountz

Description

@jpountz

Currently it is possible to mix nested and filter(s) aggregations in such a way that the filter aggregation matches documents that are not in the same scope as its parent aggregation, which can cause weird failures, see for instance #23280. We should improve validation to catch these problems earlier and raise a nicer error message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions