# Elastic Serach 5.2.2, index.max\_result\_window : size

**URL:** <https://discuss.elastic.co/t/elastic-serach-5-2-2-index-max-result-window-size/86513>\
**Category:** Elasticsearch\
**Created:** [May 20, 2017, 6:37am UTC](https://discuss.elastic.co/t/elastic-serach-5-2-2-index-max-result-window-size/86513 "2017-05-20T06:37:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)\
**Post date:** [May 20, 2017, 6:37am UTC](https://discuss.elastic.co/t/elastic-serach-5-2-2-index-max-result-window-size/86513/1 "2017-05-20T06:37:55Z")

</div>

Hi

Currently I have set index.max\_result\_window = 50000, we are migrating to 5.2.2 , this was working for Elastic Search 2.3.1

I am getting following error on ES 5.2.2:  
QueryPhaseExecutionException[Result window is too large, from + size must be less than or equal to: [10000] but was [24691]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max\_result\_window] index level setting.]

What one should use for production environment for 5.2.2.

Thanks,  
Amit Sinha

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 20, 2017, 6:53am UTC](https://discuss.elastic.co/t/elastic-serach-5-2-2-index-max-result-window-size/86513/2 "2017-05-20T06:53:40Z")

</div>

> See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max\_result\_window] index level setting

Or [Search After | Elasticsearch Reference [5.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/search-request-search-after.html)

---

<div class="post-metadata">

**Author:** ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)\
**Post date:** [May 20, 2017, 7:01am UTC](https://discuss.elastic.co/t/elastic-serach-5-2-2-index-max-result-window-size/86513/3 "2017-05-20T07:01:48Z")

</div>

Thanks David.

---

<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:** [June 17, 2017, 7:01am UTC](https://discuss.elastic.co/t/elastic-serach-5-2-2-index-max-result-window-size/86513/4 "2017-06-17T07:01:54Z")

</div>

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