# How to get large sets of top hits of a term aggregation

**URL:** <https://discuss.elastic.co/t/how-to-get-large-sets-of-top-hits-of-a-term-aggregation/35803>\
**Category:** Elasticsearch\
**Created:** [November 28, 2015, 1:57pm UTC](https://discuss.elastic.co/t/how-to-get-large-sets-of-top-hits-of-a-term-aggregation/35803 "2015-11-28T13:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramanareddy438](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@ramanareddy438](https://discuss.elastic.co/u/ramanareddy438)\
**Post date:** [November 28, 2015, 1:57pm UTC](https://discuss.elastic.co/t/how-to-get-large-sets-of-top-hits-of-a-term-aggregation/35803/1 "2015-11-28T13:57:06Z")

</div>

Hi. . .I am trying to use scan and scroll in normal search query. But i want to use that in top hits aggregation. is it possible to get the results using scan and scroll. If possible please give me an example. I am not finding any example online.

---

<div class="post-metadata">

**Author:** ![cmk1523](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cmk1523/32/6474_2.png) [@cmk1523](https://discuss.elastic.co/u/cmk1523)\
**Post date:** [December 7, 2015, 10:52pm UTC](https://discuss.elastic.co/t/how-to-get-large-sets-of-top-hits-of-a-term-aggregation/35803/2 "2015-12-07T22:52:05Z")

</div>

I would love to know this as well!

---

<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 5, 2017, 11:32pm UTC](https://discuss.elastic.co/t/how-to-get-large-sets-of-top-hits-of-a-term-aggregation/35803/3 "2017-07-05T23:32:55Z")

</div>


