Skip to content

Using competitive iterators in Filters agg is broken #126955

Open
@benwtrent

Description

@benwtrent

Elasticsearch Version

9.1.0

Installed Plugins

No response

Java Version

bundled

OS Version

any

Problem Description

When using a query & a filters aggregation, we may use a competitive iterator, with the Lucene 10.2 upgrade, this is now broken. This results in an indeterminable number of counts. The exact reasoning is still unknown

Steps to Reproduce

This has been replicated in a unit test and will be committed shortly.

Generally, the idea is you have terms that you are filtering on and doing a filters agg while also doing a term query.

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Analytics/AggregationsAggregations:Search/SearchSearch-related issues that do not fall into other categories>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Team:SearchMeta label for search team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions