es异常:Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses

在网上看到的是在yml文件添加

index.query.bool.max_clause_count: 10240

我添加后重启,使用./elasticsearch启动报错

es异常:Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses

我的es是5.2.2版本,遂用他的这个,成功启动了

indices.query.bool.max_clause_count: 10240