# Size of Query results

**URL:** https://discuss.elastic.co/t/size-of-query-results/59861
**Category:** Elasticsearch
**Created:** [September 6, 2016, 9:20am UTC](https://discuss.elastic.co/t/size-of-query-results/59861 "2016-09-06T09:20:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sandhya\_Rathinapandi](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Sandhya\_Rathinapandi](https://discuss.elastic.co/u/Sandhya_Rathinapandi)
#### Post date: [September 6, 2016, 9:20am UTC](https://discuss.elastic.co/t/size-of-query-results/59861/1 "2016-09-06T09:20:16Z")

</div>

I am querying the elasticsearch using the java api.  
I would like to get all the the results of the query without explicitly setting the query size.  
Any idea on how to do this

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 6, 2016, 10:39am UTC](https://discuss.elastic.co/t/size-of-query-results/59861/2 "2016-09-06T10:39:30Z")

</div>

This is not recommended, see [https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-request-from-size.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-request-from-size.html)

---

<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:22pm UTC](https://discuss.elastic.co/t/size-of-query-results/59861/4 "2017-07-05T22:22:07Z")

</div>


