# Unlimite the max response

**URL:** <https://discuss.elastic.co/t/unlimite-the-max-response/181315>\
**Category:** Kibana\
**Created:** [May 16, 2019, 6:26am UTC](https://discuss.elastic.co/t/unlimite-the-max-response/181315 "2019-05-16T06:26:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwan/32/42325_2.png) [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Post date:** [May 16, 2019, 6:26am UTC](https://discuss.elastic.co/t/unlimite-the-max-response/181315/1 "2019-05-16T06:26:43Z")

</div>

Hi

when I execute the following query in Kibana dev tools I got below issue

**Query**  
GET /ticker\_quote\_\*/\_search  
{  
"size": 10002,  
"query": {  
"terms": {  
"asset": ["ACAN"]  
}  
}  
}

{ "type": "query\_phase\_execution\_exception", "reason": "Result window is too large, from + size must be less than or equal to: [10000] but was [10002]. 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." }

seem like search result limited to 10000 how can make it unlimited?

Thank you

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [May 16, 2019, 7:47am UTC](https://discuss.elastic.co/t/unlimite-the-max-response/181315/2 "2019-05-16T07:47:47Z")

</div>

> [@nuwan](#):
>
> seem like search result limited to 10000 how can make it unlimited?

You can increase it, but please think twice if you decide to do that for a production cluster/index. This 10000 limit is set for a reason. It protects your cluster from abusively large search requests.

```auto
PUT /ticker_quote_*/_settings
{
    "index" : {
        "max_result_window" : 20000
    }
}

```

---

<div class="post-metadata">

**Author:** ![nuwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwan/32/42325_2.png) [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Post date:** [May 21, 2019, 3:51am UTC](https://discuss.elastic.co/t/unlimite-the-max-response/181315/3 "2019-05-21T03:51:57Z")

</div>

Hi Azasypkin,

Thank you very much for your response and your answer. I highly appreciate it

---

<div class="post-metadata">

**Author:** ![nuwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwan/32/42325_2.png) [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Post date:** [May 22, 2019, 7:26am UTC](https://discuss.elastic.co/t/unlimite-the-max-response/181315/4 "2019-05-22T07:26:45Z")

</div>

"what would be the consequences of having abusive requests? Slowness or crash?"

Thank you,

Nuwan

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [May 27, 2019, 12:07pm UTC](https://discuss.elastic.co/t/unlimite-the-max-response/181315/5 "2019-05-27T12:07:31Z")

</div>

I was mostly taking about slowing cluster down up to making it almost frozen if malicious actor can send tons of requests at the same time.

---

<div class="post-metadata">

**Author:** ![nuwan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuwan/32/42325_2.png) [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Post date:** [May 28, 2019, 1:26am UTC](https://discuss.elastic.co/t/unlimite-the-max-response/181315/6 "2019-05-28T01:26:27Z")

</div>

Thank you very much. Have you met that kind of issues . Appreciate your kindly respond.

Best regards,

Nuwan

---

<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 25, 2019, 1:26am UTC](https://discuss.elastic.co/t/unlimite-the-max-response/181315/7 "2019-06-25T01:26:31Z")

</div>

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