# How can we limit the output with multiple term aggregation

**URL:** <https://discuss.elastic.co/t/how-can-we-limit-the-output-with-multiple-term-aggregation/159670>\
**Category:** Elasticsearch\
**Created:** [December 6, 2018, 7:39am UTC](https://discuss.elastic.co/t/how-can-we-limit-the-output-with-multiple-term-aggregation/159670 "2018-12-06T07:39:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RITESH\_AGARWAL](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@RITESH\_AGARWAL](https://discuss.elastic.co/u/RITESH_AGARWAL)\
**Post date:** [December 6, 2018, 7:39am UTC](https://discuss.elastic.co/t/how-can-we-limit-the-output-with-multiple-term-aggregation/159670/1 "2018-12-06T07:39:53Z")

</div>

If we have 2 or more Term aggregation in the Query and requirement is the to limit it to the top 10 records on any field then how do restrict the output as it gives cartesian result.

---

<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:** [January 3, 2019, 7:39am UTC](https://discuss.elastic.co/t/how-can-we-limit-the-output-with-multiple-term-aggregation/159670/2 "2019-01-03T07:39:54Z")

</div>

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