# All results, setting result size and scrolling

**URL:** <https://discuss.elastic.co/t/all-results-setting-result-size-and-scrolling/3603>\
**Category:** Elasticsearch\
**Created:** [November 26, 2010, 6:32pm UTC](https://discuss.elastic.co/t/all-results-setting-result-size-and-scrolling/3603 "2010-11-26T18:32:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tristan\_sloughter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tristan_sloughter/32/3298_2.png) [@tristan\_sloughter](https://discuss.elastic.co/u/tristan_sloughter)\
**Post date:** [November 26, 2010, 6:32pm UTC](https://discuss.elastic.co/t/all-results-setting-result-size-and-scrolling/3603/1 "2010-11-26T18:32:26Z")

</div>

I know ElasticSearch isn't a database and my problem will be solved once I'm  
using CouchDB and ElasticSearch together. But I'd really like to have this  
working now.

I'd like to be able to get all results for a query like 'type:release'. I'm  
fine with just setting large max result set, but can that be done in a  
config file instead of in each query?

Regarding scrolling, I just get back a scroll\_id and keep sending that to  
get all results?

Thanks,  
Tristan

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 27, 2010, 3:50pm UTC](https://discuss.elastic.co/t/all-results-setting-result-size-and-scrolling/3603/2 "2010-11-27T15:50:25Z")

</div>

On Fri, Nov 26, 2010 at 8:32 PM, Tristan Sloughter \<  
[tristan.sloughter@gmail.com](mailto:tristan.sloughter@gmail.com)\> wrote:

> I know Elasticsearch isn't a database and my problem will be solved once  
> I'm using CouchDB and Elasticsearch together. But I'd really like to have  
> this working now.
> 
> I'd like to be able to get all results for a query like 'type:release'. I'm  
> fine with just setting large max result set, but can that be done in a  
> config file instead of in each query?

There is not config option for this currently, so you have to set it to a  
large value on each request.

> Regarding scrolling, I just get back a scroll\_id and keep sending that to  
> get all results?

Yes, thats the idea. Note that there is an open bug on the scrolling feature  
that still needs to be fixed... .

> Thanks,  
> Tristan

---

<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:16am UTC](https://discuss.elastic.co/t/all-results-setting-result-size-and-scrolling/3603/3 "2017-07-06T04:16:04Z")

</div>

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


