Skip to content

Fix aggregations check in the search function.#14

Open
iKristjan wants to merge 1 commit intonodespark:5.xfrom
iKristjan:5.x
Open

Fix aggregations check in the search function.#14
iKristjan wants to merge 1 commit intonodespark:5.xfrom
iKristjan:5.x

Conversation

@iKristjan
Copy link
Copy Markdown

Aggregations are actually stored in $params['body']['aggs'], not in $params['aggs'].

Without this bugfix, aggs always gets rebuilt right before search. Hence making all aggregations altering void (e.g. altering $params['body']['aggs'] in hook_elasticsearch_connector_search_api_query_alter()).

@agoja
Copy link
Copy Markdown

agoja commented Jan 3, 2019

Hello,

Faced the same issue adding custom/nested aggs.

WIll be nice to have this pull requested applied.

Regards.

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

Successfully merging this pull request may close these issues.

2 participants