# Alternative to top\_hits aggregation

**URL:** <https://discuss.elastic.co/t/alternative-to-top-hits-aggregation/235790>\
**Category:** Elasticsearch\
**Created:** [June 4, 2020, 2:48pm UTC](https://discuss.elastic.co/t/alternative-to-top-hits-aggregation/235790 "2020-06-04T14:48:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranav24](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Post date:** [June 4, 2020, 2:48pm UTC](https://discuss.elastic.co/t/alternative-to-top-hits-aggregation/235790/1 "2020-06-04T14:48:27Z")

</div>

What are the alternate ways to bring source data of buckets after aggregation?  
Why top\_hits aggregation slow when we increase the value of "from"?

---

<div class="post-metadata">

**Author:** ![pranav24](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Post date:** [June 23, 2020, 9:47am UTC](https://discuss.elastic.co/t/alternative-to-top-hits-aggregation/235790/2 "2020-06-23T09:47:56Z")

</div>

Can someone please answer this?

@dadoonet  
@Mark_Harwood

---

<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 21, 2020, 9:47am UTC](https://discuss.elastic.co/t/alternative-to-top-hits-aggregation/235790/3 "2020-07-21T09:47:56Z")

</div>

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