ES 查询报错
Caused by: java.lang.IllegalArgumentException: Result window is too large, from + size must be less than or equal to: [10000] but was [12390]. 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:213)at org.elasticsearch.search.query.QueryPhase.preProcess(QueryPhase.java:124)at org.elasticsearch.search.SearchService.createContext(SearchService.java:695)at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:632)at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:429)at org.elasticsearch.search.SearchService.access$200(SearchService.java:136)at org.elasticsearch.search.SearchService$2.lambda$onResponse$0(SearchService.java:396)at org.elasticsearch.search.SearchService.lambda$runAsync$0(SearchService.java:412)... 6 more
设置ES索引最大限制
PUT */_settings
{"index":{"max_result_window":10000000}
}