Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FiltersAggregation generates invalid array #91

Closed
niels-nijens opened this issue Apr 19, 2016 · 1 comment
Closed

FiltersAggregation generates invalid array #91

niels-nijens opened this issue Apr 19, 2016 · 1 comment

Comments

@niels-nijens
Copy link
Contributor

The FiltersAggregation adds filters inside an array with the type as key. Though, this generates the following array for a TermQuery with the 'term'-key twice in the stack:

array(
    'filtername' => array(
        'term' => array(
            'term' => array(
                'fieldname' => 'fieldvalue'
            )
        )
    )
)

This filter will throw an exception when sending it with a query to an Elasticsearch server.

I can supply a PR to fix this issue if you want.

@saimaz
Copy link
Member

saimaz commented Apr 19, 2016

Sure, you are welcome to open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants