Elasticsearch。删除部分my_index / _settings

时间:2018-10-24 12:29:00

标签: json elasticsearch

我有弹性(2.4.6)my_index / _settings:

{
  "my_index" : {
    "settings" : {
      "index" : {
        "number_of_shards" : "5",
        "preserve_existing" : "true",
        "max_result_window" : "10000000",
        "{index" : {
          "max_result_window" : ""
        },
        "creation_date" : "66666666",
        "number_of_replicas" : "0",
        "uuid" : "test",
        "version" : {
          "created" : "666"
        }
      }
    }
  }
}

我可以删除这部分吗?

"{index" : {
              "max_result_window" : ""
            },

1。我该怎么做? 2.这行会影响弹性吗?

1 个答案:

答案 0 :(得分:0)

否,您不能删除此行。但是空值为OK,这意味着它将返回默认值(10000)。在您的情况下,我认为它设置为100000。