# Help with aggregations

**URL:** <https://discuss.elastic.co/t/help-with-aggregations/109012>\
**Category:** Elasticsearch\
**Created:** [November 24, 2017, 10:26am UTC](https://discuss.elastic.co/t/help-with-aggregations/109012 "2017-11-24T10:26:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 27, 2017, 9:51am UTC](https://discuss.elastic.co/t/help-with-aggregations/109012/4 "2017-11-27T09:51:20Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

May be Top Hits would help: [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/search-aggregations-metrics-top-hits-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/search-aggregations-metrics-top-hits-aggregation.html)

---

_[View the full topic](https://discuss.elastic.co/t/help-with-aggregations/109012)._
