更新时间:2026-04-30 GMT+08:00
CSS服务中如何设置Elasticsearch集群的默认分页返回最大条数?
解决方案
- 方法1:
PUT _all/_settings?preserve_existing=true { "index.max_result_window" : "10000000" } - 方法2:
curl -k -XPUT 'http://localhost:9200/*/_settings?preserve_existing=true' -d \ '{ "index.max_result_window": "1000000" }'“localhost”是Elasticsearch集群的访问地址。
该配置会相应地消耗内存与CPU,请谨慎设置。
父主题: CSS集群搜索引擎使用