# Elasticsearch does not take "index.max\_result\_window" in elasticsearch.yml

**URL:** <https://discuss.elastic.co/t/elasticsearch-does-not-take-index-max-result-window-in-elasticsearch-yml/143399>\
**Category:** Elasticsearch\
**Created:** [August 7, 2018, 8:28pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-take-index-max-result-window-in-elasticsearch-yml/143399 "2018-08-07T20:28:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jxz](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@jxz](https://discuss.elastic.co/u/jxz)\
**Post date:** [August 7, 2018, 8:28pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-take-index-max-result-window-in-elasticsearch-yml/143399/1 "2018-08-07T20:28:38Z")

</div>

Hi,

I want to set the max scroll size explicitly through the index.max\_result\_window setting for me to experiment with the different scroll sizes. I tried to add a line (such as "index.max\_result\_window: 10000") to the elasticsearch.yml file, but once I did that I could not restart the Elasticsearch service. As long as the line is in the elasticsearch.yml file, no matter it is with a value greater than, equal to, or less than (even lot less than) 10,000 (the default), the service won't restart. However, the service restarts successfully if I comment out or remove that line.

We are on Windows Server 2012 R2.

---

<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:** [August 7, 2018, 8:42pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-take-index-max-result-window-in-elasticsearch-yml/143399/2 "2018-08-07T20:42:24Z")

</div>

You can't put this value in `elasticsearch.yml` but on an index level using the update indices settings API: [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.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:** [September 4, 2018, 8:42pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-take-index-max-result-window-in-elasticsearch-yml/143399/3 "2018-09-04T20:42:27Z")

</div>

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