ElasticSearch之Search settings

相关参数
indices.query.bool.max_clause_count

本参数当前已失效。

search.max_buckets

本参数用于控制在单个响应中返回的聚合的桶的数量。

默认值为65536

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

yml 复制代码
search.max_buckets: 30

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

shell 复制代码
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中配置,配置样例如下:

yml 复制代码
indices.query.bool.max_nested_depth: 30

相关资料

相关推荐
Johny_Zhao7 小时前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
洛森唛14 小时前
Elasticsearch DSL 查询语法大全:从入门到精通
后端·elasticsearch
chlk1232 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑2 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件2 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
深紫色的三北六号2 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash2 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
Elasticsearch3 天前
如何使用 Agent Builder 排查 Kubernetes Pod 重启和 OOMKilled 事件
elasticsearch
哈基咪怎么可能是AI3 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行3 天前
Linux和window共享文件夹
linux