【问题标题】:Increase max result window in elasticsearch for ALL indexes in python在弹性搜索中为python中的所有索引增加最大结果窗口
【发布时间】:2020-07-18 01:22:12
【问题描述】:

有一个已经回答的问题:How to increase the max_result_window in elasticsearch using a python script?

我正在寻找一种将 max_result_window 应用于所有索引的方法。如何做到这一点?我试过的(没用):

.indices.put_settings(body= {"max_result_window" : 500000})
.indices.put_settings(body= {{"max_result_window" : 500000}})
.indices.put_settings(index="*",
                        body= {"*" : {
                                "max_result_window" : 500000
                              }})
.indices.put_settings(index="all",
                        body= {"all" : {
                                "max_result_window" : 500000
                              }})

【问题讨论】:

    标签: python elasticsearch


    【解决方案1】:

    只是能够使其工作。正确的查询如下:

    es.indices.put_settings(index="_all",body= {"max_result_window" : 500000})
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-08-09
      • 1970-01-01
      • 2018-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多