# Max\_result\_window value not reflect in result set.. it show only 10k records only

**URL:** https://discuss.elastic.co/t/max-result-window-value-not-reflect-in-result-set-it-show-only-10k-records-only/231465
**Category:** Elasticsearch
**Created:** [May 7, 2020, 6:45am UTC](https://discuss.elastic.co/t/max-result-window-value-not-reflect-in-result-set-it-show-only-10k-records-only/231465 "2020-05-07T06:45:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sanjaygpatel](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@Sanjaygpatel](https://discuss.elastic.co/u/Sanjaygpatel)
#### Post date: [May 7, 2020, 6:45am UTC](https://discuss.elastic.co/t/max-result-window-value-not-reflect-in-result-set-it-show-only-10k-records-only/231465/1 "2020-05-07T06:45:57Z")

</div>

Hello ,

i have set property of max\_result\_window : "1000000" in settings at index level but while search result for larger data set then only result 10k so it mean not taking effect index setting.

is there anything i have to do ?

i have installed latest version of ES 7.6 in Kubernates pod.

help me out here..

Thanks,  
Sanjay Patel

---

<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 7, 2020, 7:04am UTC](https://discuss.elastic.co/t/max-result-window-value-not-reflect-in-result-set-it-show-only-10k-records-only/231465/2 "2020-05-07T07:04:05Z")

</div>

Welcome!

What exact command did you launch?  
What is the search request you are running?

---

<div class="post-metadata">

### Author: ![Sanjaygpatel](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@Sanjaygpatel](https://discuss.elastic.co/u/Sanjaygpatel)
#### Post date: [May 7, 2020, 7:11am UTC](https://discuss.elastic.co/t/max-result-window-value-not-reflect-in-result-set-it-show-only-10k-records-only/231465/3 "2020-05-07T07:11:31Z")

</div>

Hello Donoonet,

here is my index settings

"settings": {  
"index": {  
"number\_of\_shards": "5",  
"provided\_name": "GoodNew1",  
"max\_result\_window": "1000000",  
"creation\_date": "1585221664680",  
"number\_of\_replicas": "1",  
"uuid": "-VgZQKp1RUWWNMhQYLbm7Q",  
"version": {  
"created": "5050299"  
}  
}

and my search query like

POST GoodNew/\_search  
{  
"query": {  
"bool": {  
"filter": {  
"bool": {

```
      "must_not": [
        {
          "match": {
            "IsApproved": true
          }
        },
        {
          "match": {
            "isArchive": true
          }
        }
      ]
      
              }
  }
}

```

},  
"size": 50000  
}

and result i get like

{  
"took" : 12,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 3,  
"successful" : 3,  
"skipped" : 0,  
"failed" : 0  
},  
"hits" : {  
"total" : {  
"value" : 10000,  
"relation" : "gte"  
},  
"max\_score" : 0.0,  
"hits" : [....  
]  
}

---

<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 7, 2020, 8:16am UTC](https://discuss.elastic.co/t/max-result-window-value-not-reflect-in-result-set-it-show-only-10k-records-only/231465/4 "2020-05-07T08:16:24Z")

</div>

I guess you are wondering about:

```
"value" : 10000,

```

That's the default behavior, whatever the size or the window are.

You want to look at: [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-track-total-hits](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-track-total-hits)

---

<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 4, 2020, 8:16am UTC](https://discuss.elastic.co/t/max-result-window-value-not-reflect-in-result-set-it-show-only-10k-records-only/231465/5 "2020-06-04T08:16:25Z")

</div>

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