# Groovy API and Scrolling

**URL:** <https://discuss.elastic.co/t/groovy-api-and-scrolling/4739>\
**Category:** Elasticsearch\
**Created:** [June 30, 2011, 8:16am UTC](https://discuss.elastic.co/t/groovy-api-and-scrolling/4739 "2011-06-30T08:16:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaud\_Lahache](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arnaud_lahache/32/3188_2.png) [@Arnaud\_Lahache](https://discuss.elastic.co/u/Arnaud_Lahache)\
**Post date:** [June 30, 2011, 8:16am UTC](https://discuss.elastic.co/t/groovy-api-and-scrolling/4739/1 "2011-06-30T08:16:24Z")

</div>

Hi,

I'm currently using the Groovy API to create a Grails application  
using ElasticSearch. It's such a great product, and i'm very excited  
to work with it. Right now, i'd like to execute a scan query, but i  
can't find any client.prepareSearchScroll() in the API. I'm not even  
sure if we can do that in a Groovier way, using the search() Closure.  
I've done quite a few researches on that issue, but I couldn't find  
any satisfying results.

So finally i'm asking : is there any way to scroll a search query  
using the Groovy API ?

(I'm using the 0.16.2 Groovy API)

Many Thanks,  
Arnaud.

---

<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, 4:02am UTC](https://discuss.elastic.co/t/groovy-api-and-scrolling/4739/2 "2017-07-06T04:02:12Z")

</div>

Closed on July 6, 2017, 4:02am UTC


