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

来源:互联网 发布:有声单词软件下载 编辑:程序博客网 时间:2024/06/13 22:15

异常:

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启动报错。

1 0
原创粉丝点击