文档首页> 云搜索服务 CSS> 常见问题> 开源搜索引擎咨询> Elasticsearch集群设置默认分页返回最大条数
更新时间:2024-04-15 GMT+08:00
分享

Elasticsearch集群设置默认分页返回最大条数

解决方案

  • 方法1:

    打开Kibana,在devtools界面执行如下命令:

    PUT _all/_settings?preserve_existing=true
    {
    "index.max_result_window" : "10000000"
    }
  • 方法2:

    后台执行如下命令进行设置:

    curl –XPUT ‘http://localhost:9200/_all/_setting?preserve_existing=true’-d
    {
    "index.max_result_window":"1000000"
    }

该配置会相应的消耗内存与CPU,请谨慎设置。

分享:

开源搜索引擎咨询 所有常见问题

more