您的位置:首页 > 移动开发

org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses: maxClauseCount

2017-05-10 20:35 1506 查看
异常:

Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses: maxClauseCount is set to 1024

用了es的in查询,in中id大于1024个,导致es报错,es默认支持元素数量为1024个。

解决办法:

编辑elasticsearch.yml,添加如下配置:

index.query.bool.max_clause_count: 10240
注意:必须在最前面添加一个空格,即和其他配置首字母对齐,不然es启动报错。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐