# Aggregation statistic on the fields

**URL:** <https://discuss.elastic.co/t/aggregation-statistic-on-the-fields/135441>\
**Category:** Elasticsearch\
**Created:** [June 11, 2018, 11:56pm UTC](https://discuss.elastic.co/t/aggregation-statistic-on-the-fields/135441 "2018-06-11T23:56:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![panfng](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@panfng](https://discuss.elastic.co/u/panfng)\
**Post date:** [June 11, 2018, 11:56pm UTC](https://discuss.elastic.co/t/aggregation-statistic-on-the-fields/135441/1 "2018-06-11T23:56:18Z")

</div>

Say I have a list of documents returned for a certain search query.  
The documents can have different dynamic fields(defined using dynamic template)  
is there a way to give me top 10 dynamic fields(based on product count) that appeared in these documents.

---

<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 10, 2018, 12:06am UTC](https://discuss.elastic.co/t/aggregation-statistic-on-the-fields/135441/2 "2018-07-10T00:06:22Z")

</div>

Closed on July 10, 2018, 12:06am UTC

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