# Params per terms aggreations

**URL:** <https://discuss.elastic.co/t/params-per-terms-aggreations/239086>\
**Category:** Elasticsearch\
**Created:** [June 29, 2020, 9:45am UTC](https://discuss.elastic.co/t/params-per-terms-aggreations/239086 "2020-06-29T09:45:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eftikhar\_Abu\_Libdeh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eftikhar_abu_libdeh/32/71118_2.png) [@Eftikhar\_Abu\_Libdeh](https://discuss.elastic.co/u/Eftikhar_Abu_Libdeh)\
**Post date:** [June 29, 2020, 9:45am UTC](https://discuss.elastic.co/t/params-per-terms-aggreations/239086/1 "2020-06-29T09:45:49Z")

</div>

I have terms aggregation just after date histogram aggregation, each sub-bucket should apply filter on extra params based on nested bucket keys.  
since I can't access the bucket keys I just make it as array of aggregation, each with (date, term) key and parameter is attached based on the keys, the problem is the params are too long and the aggregation are also too much it might reach 400 😞😞😭.

any Idea how to enhance the query for aggregations like this 🥺

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 27, 2020, 9:45am UTC](https://discuss.elastic.co/t/params-per-terms-aggreations/239086/2 "2020-07-27T09:45:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
