# How can i use scroll api when i use "terms\_stats"

**URL:** <https://discuss.elastic.co/t/how-can-i-use-scroll-api-when-i-use-terms-stats/15883>\
**Category:** Elasticsearch\
**Created:** [February 19, 2014, 2:59am UTC](https://discuss.elastic.co/t/how-can-i-use-scroll-api-when-i-use-terms-stats/15883 "2014-02-19T02:59:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![happyprg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/happyprg/32/681_2.png) [@happyprg](https://discuss.elastic.co/u/happyprg)\
**Post date:** [February 19, 2014, 2:59am UTC](https://discuss.elastic.co/t/how-can-i-use-scroll-api-when-i-use-terms-stats/15883/1 "2014-02-19T02:59:57Z")

</div>

thanks you for read my post..

1. i use terms\_stats  
curl -XPOSThttp://10.32.240.15:21200/jp\_listened\_log/2014-02/\_search -d '  
{  
"query": {  
"match\_all": {}  
},  
"facets": {  
"tag\_price\_stats": {  
"terms\_stats": {  
"key\_field": "uniquePlayId",  
"value\_field": "scrubberPosition"  
}  
}  
}  
}  
'  
i don't need hits data  
only need facets elements data..  
how can i requst api?  
\_search/search\_type=count ?

2. second qustion  
i want to use scroll with terms\_stats..  
how can i use terms\_stats+scroll(pagination or scroll)?

plz someone help me

---

<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 6, 2017, 1:49am UTC](https://discuss.elastic.co/t/how-can-i-use-scroll-api-when-i-use-terms-stats/15883/2 "2017-07-06T01:49:13Z")

</div>


