# Result window is too large, from + size must be less than or equal to: \[1000\] but was \[1025\]

**URL:** https://discuss.elastic.co/t/result-window-is-too-large-from-size-must-be-less-than-or-equal-to-1000-but-was-1025/163615
**Category:** Elasticsearch
**Created:** [January 9, 2019, 8:12pm UTC](https://discuss.elastic.co/t/result-window-is-too-large-from-size-must-be-less-than-or-equal-to-1000-but-was-1025/163615 "2019-01-09T20:12:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![arunics](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@arunics](https://discuss.elastic.co/u/arunics)
#### Post date: [January 9, 2019, 8:12pm UTC](https://discuss.elastic.co/t/result-window-is-too-large-from-size-must-be-less-than-or-equal-to-1000-but-was-1025/163615/1 "2019-01-09T20:12:54Z")

</div>

I am seeing the above error when Application Searches from ES cluster. I wonder how it shows as 1000 when the default seems to be 10K.  
ES Version:  
"number" : "5.5.3",  
"build\_hash" : "9305a5e",  
"build\_date" : "2017-09-07T15:56:59.599Z",  
"build\_snapshot" : false,  
"lucene\_version" : "6.6.0"

```
org.elasticsearch.transport.RemoteTransportException: [es-data01][10.11.56.107:9300][indices:data/read/search[phase/query]]
Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must be less than or equal to: [1000] but was [1025]. 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.
	at org.elasticsearch.search.DefaultSearchContext.preProcess(DefaultSearchContext.java:203) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.search.query.QueryPhase.preProcess(QueryPhase.java:90) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.search.SearchService.createContext(SearchService.java:493) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:457) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:253) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:330) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.action.search.SearchTransportService$6.messageReceived(SearchTransportService.java:327) ~[elasticsearch-5.5.3.jar:5.5.3]
	at com.atlassian.elasticsearch.buckler.AuthTransportRequestHandler.messageReceived(AuthTransportRequestHandler.java:31) ~[?:?]
	at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:69) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.transport.TcpTransport$RequestHandler.doRun(TcpTransport.java:1544) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:638) ~[elasticsearch-5.5.3.jar:5.5.3]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-5.5.3.jar:5.5.3]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_91]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_91]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
```

---

<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 9, 2019, 8:28pm UTC](https://discuss.elastic.co/t/result-window-is-too-large-from-size-must-be-less-than-or-equal-to-1000-but-was-1025/163615/2 "2019-01-09T20:28:54Z")

</div>

Looks strange to me as the default limit is 10000 not 1000.  
Check your index settings

---

<div class="post-metadata">

### Author: ![arunics](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@arunics](https://discuss.elastic.co/u/arunics)
#### Post date: [January 9, 2019, 8:34pm UTC](https://discuss.elastic.co/t/result-window-is-too-large-from-size-must-be-less-than-or-equal-to-1000-but-was-1025/163615/3 "2019-01-09T20:34:21Z")

</div>

Ah, right it comes from the index settings. Thanks.

---

<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 6, 2019, 8:34pm UTC](https://discuss.elastic.co/t/result-window-is-too-large-from-size-must-be-less-than-or-equal-to-1000-but-was-1025/163615/4 "2019-02-06T20:34:21Z")

</div>

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