ElasticSearch查询报错:type=illegal_argument_exception, reason=Result window is too large
Caused by: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Result window is too large, from + size must be less than or equal to: [10000] but was [10155].See th
·
Caused by: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Result window is too large, from + size must be less than or equal to: [10000] but was [10155].
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.]]
解析:要求查询到的结果数量大于10000条,es默认最大查10000条数据,当想查的数据大于10000时会抛出异常
解决方案:修改最大默认查询
修改脚本:
PUT summary_index/_settings?preserve_existing=true
{
"max_result_window":"200000000"
}
更多推荐
已为社区贡献5条内容
所有评论(0)