# Taking more time in Elastic Search

**URL:** <https://discuss.elastic.co/t/taking-more-time-in-elastic-search/116206>\
**Category:** Elasticsearch\
**Created:** [January 19, 2018, 10:11am UTC](https://discuss.elastic.co/t/taking-more-time-in-elastic-search/116206 "2018-01-19T10:11:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aneesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aneesh/32/37819_2.png) [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Post date:** [January 19, 2018, 10:11am UTC](https://discuss.elastic.co/t/taking-more-time-in-elastic-search/116206/1 "2018-01-19T10:11:33Z")

</div>

Hi

I have an index, which is having 4 records. But its taking more 700 milliseconds.  
Note : index.max\_result\_window : 100000  
when decreasing window size, time also  
For each index number of records is different(some \< 10, some \> 50000), so how can i solve this problem??

Thanks  
Aneesh L

---

<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:** [January 19, 2018, 10:55am UTC](https://discuss.elastic.co/t/taking-more-time-in-elastic-search/116206/2 "2018-01-19T10:55:05Z")

</div>

I don't think it's related to `index.max_result_window` setting but to the `size` parameter you are putting in your search call.

And I think that you set it to `"size": 100000`. Am I right?

And I hope you remember what I wrote:

> [@Max size for getting data](https://discuss.elastic.co/t/max-size-for-getting-data/114851/6):
>
> I hope you understand the consequences of changing settings. Specifically in term of memory pressure.

---

<div class="post-metadata">

**Author:** ![aneesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aneesh/32/37819_2.png) [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Post date:** [January 22, 2018, 7:00am UTC](https://discuss.elastic.co/t/taking-more-time-in-elastic-search/116206/3 "2018-01-22T07:00:52Z")

</div>

Hi David Pilato

Is it possible to update index.max\_result\_window? Like I set it to 1000 and when adding a new data need to increment by 1(DynamicUpdate)

Thanks  
Aneesh

---

<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:** [January 22, 2018, 7:35am UTC](https://discuss.elastic.co/t/taking-more-time-in-elastic-search/116206/4 "2018-01-22T07:35:34Z")

</div>

Yes. But I'd not do that and I'd keep the default value as 10000.  
Again, a normal user can not read IMO 10000 results.

---

<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:** [February 19, 2018, 7:35am UTC](https://discuss.elastic.co/t/taking-more-time-in-elastic-search/116206/5 "2018-02-19T07:35:42Z")

</div>

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