# Retrieve all matched results

**URL:** <https://discuss.elastic.co/t/retrieve-all-matched-results/3269>\
**Category:** Elasticsearch\
**Created:** [August 27, 2010, 4:45pm UTC](https://discuss.elastic.co/t/retrieve-all-matched-results/3269 "2010-08-27T16:45:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Livsey](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@Richard\_Livsey](https://discuss.elastic.co/u/Richard_Livsey)\
**Post date:** [August 27, 2010, 4:45pm UTC](https://discuss.elastic.co/t/retrieve-all-matched-results/3269/1 "2010-08-27T16:45:55Z")

</div>

Is it possible to retrieve all matched results, or do all queries need a size?

I could set size to something fairly large, I can fairly safely assume  
that I don't want to display more than 1000 results to the user for  
example, but wondering if there's a nicer way of doing it.

Cheers.

--  
Richard Livsey  
Minutebase - Online Meeting Minutes  
[http://minutebase.com](http://minutebase.com)  
[http://livsey.org](http://livsey.org)

---

<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:** [August 27, 2010, 6:53pm UTC](https://discuss.elastic.co/t/retrieve-all-matched-results/3269/2 "2010-08-27T18:53:07Z")

</div>

You can scroll the results using the search scroll API. Though be careful  
not to heavily use it (i.e. don't use scrolling to provide pagination for  
your users) as its taxing on the server.

-shay.banon

On Fri, Aug 27, 2010 at 7:45 PM, Richard Livsey [livsey@gmail.com](mailto:livsey@gmail.com) wrote:

> Is it possible to retrieve all matched results, or do all queries need a  
> size?
> 
> I could set size to something fairly large, I can fairly safely assume  
> that I don't want to display more than 1000 results to the user for  
> example, but wondering if there's a nicer way of doing it.
> 
> Cheers.
> 
> --  
> Richard Livsey  
> Minutebase - Online Meeting Minutes  
> [http://minutebase.com](http://minutebase.com)  
> [http://livsey.org](http://livsey.org)

---

<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:20am UTC](https://discuss.elastic.co/t/retrieve-all-matched-results/3269/3 "2017-07-06T04:20:11Z")

</div>


