ElasticSearch之Search settings

发布时间 2023-11-29 01:05:28作者: jackieathome

相关参数
indices.query.bool.max_clause_count
本参数当前已失效。

search.max_buckets
本参数用于控制在单个响应中返回的聚合的桶的数量。
默认值为65536

本参数允许在elasticsearch.yml中配置,配置样例如下:

search.max_buckets: 30

或者使用ElasticSearch cluster update settings API修改,命令样例如下:

curl -X PUT "https://localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
  "persistent" : {
    "search.max_buckets" : 65536
  }
}
' --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

indices.query.bool.max_nested_depth
本参数用于控制查询时的深度,过大的参数值可能导致栈溢出错误。
默认值为30
本参数只允许在elasticsearch.yml中配置,配置样例如下:

indices.query.bool.max_nested_depth: 30

相关资料