栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

ElasticSearch查询报错:type=illegal

ElasticSearch查询报错:type=illegal

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"
}

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/702091.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号