# Help me increase index.max\_result\_window level

**URL:** <https://discuss.elastic.co/t/help-me-increase-index-max-result-window-level/139610>\
**Category:** Elasticsearch\
**Created:** [July 11, 2018, 3:17pm UTC](https://discuss.elastic.co/t/help-me-increase-index-max-result-window-level/139610 "2018-07-11T15:17:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marklcfc](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@marklcfc](https://discuss.elastic.co/u/marklcfc)\
**Post date:** [July 11, 2018, 3:17pm UTC](https://discuss.elastic.co/t/help-me-increase-index-max-result-window-level/139610/1 "2018-07-11T15:17:41Z")

</div>

I am trying to use ElasticSearch on Invision forum software, it works generally but there is an error and its causing tasks to crash. This is the error

```
Result window is too large, from + size must be less than or equal to: [10000] but was [11450]. 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.

```

How do I instruct my host to increase this setting?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [July 11, 2018, 3:53pm UTC](https://discuss.elastic.co/t/help-me-increase-index-max-result-window-level/139610/2 "2018-07-11T15:53:58Z")

</div>

> [@marklcfc](#):
>
> How do I instruct my host to increase this setting?

You might not want to. That setting is a safeguard to avoid your servers running out of memory.  
"Deep pagination" causes this which is why search engines like Google similarly don't let you page endlessly through millions of results.  
If you really, really do need deep pagination then there are specialised elasticsearch APIs ([scroll](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html) and [search after](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html) ) that Invision should be using which are more efficient and avoid running out of memory.

---

<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:** [August 8, 2018, 3:54pm UTC](https://discuss.elastic.co/t/help-me-increase-index-max-result-window-level/139610/3 "2018-08-08T15:54:04Z")

</div>

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