# Setting search size to unlimited?

**URL:** <https://discuss.elastic.co/t/setting-search-size-to-unlimited/148682>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [September 14, 2018, 9:21pm UTC](https://discuss.elastic.co/t/setting-search-size-to-unlimited/148682 "2018-09-14T21:21:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgburks](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@jgburks](https://discuss.elastic.co/u/jgburks)\
**Post date:** [September 14, 2018, 9:21pm UTC](https://discuss.elastic.co/t/setting-search-size-to-unlimited/148682/1 "2018-09-14T21:21:40Z")

</div>

Is there some way to set the search size parameter to unlimited? It defaults to 10, and I can set it to some arbitrary large number, but I was hoping there was some way to just set it to unlimited. I just want to have all of the search hits included in my result context.

Thanks

---

<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 15, 2018, 9:15am UTC](https://discuss.elastic.co/t/setting-search-size-to-unlimited/148682/2 "2018-09-15T09:15:34Z")

</div>

That's not a great idea, check out [https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-request-from-size.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-request-from-size.html)

---

<div class="post-metadata">

**Author:** ![jgburks](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@jgburks](https://discuss.elastic.co/u/jgburks)\
**Post date:** [September 15, 2018, 12:34pm UTC](https://discuss.elastic.co/t/setting-search-size-to-unlimited/148682/3 "2018-09-15T12:34:16Z")

</div>

Understood, but in this case we know it's never going to be an overly large result set. I had seen that page with the default 10,000 mention. I'll just pick some reasonable large number, say 1,000 and go with that. Any more than that means we have a bigger problem anyway,.

Thanks

---

<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:** [October 13, 2018, 12:34pm UTC](https://discuss.elastic.co/t/setting-search-size-to-unlimited/148682/4 "2018-10-13T12:34:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
