异常:
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 遇到的一个坑too_many_clauses: maxClauseCount
原文:https://www.cnblogs.com/snake23/p/9448648.html