zoukankan      html  css  js  c++  java
  • ElasticSearch7.6.2 search_phase_execution_exception

     环境:ElasticSearch7.6.2  

    报这个错误 先看看索引字段 的mapping,然后查看 ElasticSearch 后台运行日志。

    如果报这个错误 

    bug Trying to create too many buckets. Must be less than or equal to: [10000] but was [10001]. This limit can be set by changing the [search.max_buckets] cluster level setting.

    这是6.x版本才有的特性,目的:限制大批量聚合操作,规避性能风险。
    解决方案:setting里设置:search.max_buckets 

     curl方式 :

    curl --user 用户名:密码  -XPUT 'http://192.168.0.7:9200/_cluster/settings' -H 'Content-Type: application/json' -d'{"persistent": { "search.max_buckets": 217483647}}'

    -- 沉着,冷静,bug总会解决,未来道路很光明。
  • 相关阅读:
    NYOJ47 过河问题
    CodeForces1165
    LuoGuP3667
    ZROI#958
    ZROI#957
    KMP小结
    LuoGuP2742[模板]二维凸包
    ZROI#999
    ZROI#997
    ZROI#996
  • 原文地址:https://www.cnblogs.com/dadadajiong/p/12793493.html
Copyright © 2011-2022 走看看