异常:

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

相关文章:

  • 2022-12-23
  • 2018-06-26
  • 2021-08-15
  • 2021-08-12
  • 2021-06-09
  • 2022-12-23
  • 2022-01-30
猜你喜欢
  • 2022-01-13
  • 2021-09-09
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-12-03
相关资源
相似解决方案