当前位置:   article > 正文

elasticsearch索引读写状态设置_easy-es reason writeindex

easy-es reason writeindex

index读写状态设置

PUT /news/_settings
{
  "index.blocks.read_only":false,
  "index.blocks.write":true
}

POST /news/_close

POST /news/_open

别名设置

POST /_aliases
{
  "actions": [
    {
      "add": {
        "index": "new_1",
        "alias": "niuniu",
          "is_write_index": true
      }
    },{
      "add": {
        "index": "news",
        "alias": "niuniu",
          "is_write_index": false
      }
    }
  ]
}

删除别名

POST /_aliases
{
  "actions": [
    {
     

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号