ES 遇到的一个坑too_many_clauses: maxClauseCount
时间:2018-08-09 14:42:49
收藏:0
阅读:910
异常:
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启动报错。
原文:https://www.cnblogs.com/snake23/p/9448648.html
评论(0)