Skip to content

TypeError: elasticsearch_dsl.aggs.A() got multiple values for keyword argument 'filter' #1902

Closed
@rikkt0r

Description

@rikkt0r

Error occures when accessing bucket aggregation containing a filter directly from AggBase derivate instead of .aggs dict.

The cause of this is the "filter" kwarg passed excessively, colliding with related aggregation params

Minimal sample to reproduce:

b = aggs.Filter(query.Terms(something=[1, 2, 3]))

a = aggs.Terms(field="some_field", size=100)
a.bucket("b", b)

a.aggs['b']  # Ok !
a['b']  # TypeError: elasticsearch_dsl.aggs.A() got multiple values for keyword argument 'filter'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions