绊脚石乃是进身之阶。

es5 想删除一项settings配置 怎么删

匿名 | 发布于2018年07月13日 | 阅读数:4891


 curl http://xxxxxx/s2/_settings?pretty
{
  "s2" : {
    "settings" : {
      "index" : {
        "routing" : {
          "allocation" : {
            "require" : {
              "rack" : "hot"
            }
          }
        },
        "number_of_shards" : "5",
        "provided_name" : "s2",
        "creation_date" : "1531463264882",
        "number_of_replicas" : "1",
        "uuid" : "DmZkwT4lSZ63xZD78mexzQ",
        "version" : {
          "created" : "5020299"
        }
      }
    }
  }
}

"index.routing.allocation.require.rack":"hot"   怎么删掉
已邀请:

zqc0512 - andy zhou

赞同来自: bettybai porchidy

null.

rockybean - Elastic Certified Engineer, ElasticStack Fans,公众号:ElasticTalk

赞同来自: bettybai porchidy

设置该选项为 null,楼上极简风 
https://www.elastic.co/guide/e ... .html
搜 null
 
哦,刚发现是 es5,不能通过这种方式
你这个设置的话,设置为 null  是可行的,其他的设置要改为对应的值才可以

要回复问题请先登录注册