# How to page for terms aggs?

**URL:** <https://discuss.elastic.co/t/how-to-page-for-terms-aggs/50635>\
**Category:** Elasticsearch\
**Created:** [May 21, 2016, 11:00pm UTC](https://discuss.elastic.co/t/how-to-page-for-terms-aggs/50635 "2016-05-21T23:00:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![changxy](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@changxy](https://discuss.elastic.co/u/changxy)\
**Post date:** [May 21, 2016, 11:00pm UTC](https://discuss.elastic.co/t/how-to-page-for-terms-aggs/50635/1 "2016-05-21T23:00:12Z")

</div>

my request like this:

> GET \_search  
> {  
> "query": {  
> "bool": {  
> "must": [  
> {  
> "match": {  
> "class": "Article"  
> }  
> },  
> {  
> "match\_phrase": {  
> "title": "happy"  
> }  
> }  
> ]  
> }  
> },  
> "size": 0,  
> "aggs": {  
> "removefileiddup": {  
> "terms": {  
> "field": "fileid",  
> "size": 100,  
> "order":{"max\_reads":"desc"}  
> },  
> "aggs": {  
> "max\_reads": { "max": { "field": "reads" }},  
> "top\_tag\_hits": {  
> "top\_hits": {  
> "\_source": {  
> "include": [  
> "title",  
> "reads",  
> "url"  
> ]  
> },  
> "from": 0,  
> "size": 1  
> }  
> }  
> }  
> }  
> }  
> }  
> }

web server is java，have any good idea?

---

<div class="post-metadata">

**Author:** ![geekpete](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geekpete/32/20409_2.png) [@geekpete](https://discuss.elastic.co/u/geekpete)\
**Post date:** [May 23, 2016, 1:31am UTC](https://discuss.elastic.co/t/how-to-page-for-terms-aggs/50635/2 "2016-05-23T01:31:54Z")

</div>

Hi Changexy,

It looks that this isn't currently supported but is an active feature request:

> <https://github.com/elastic/elasticsearch/issues/4915>

Thanks.

---

<div class="post-metadata">

**Author:** ![changxy](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@changxy](https://discuss.elastic.co/u/changxy)\
**Post date:** [May 23, 2016, 3:11am UTC](https://discuss.elastic.co/t/how-to-page-for-terms-aggs/50635/3 "2016-05-23T03:11:02Z")

</div>

thanks a lot

---

<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, 10:49pm UTC](https://discuss.elastic.co/t/how-to-page-for-terms-aggs/50635/4 "2017-07-05T22:49:55Z")

</div>


