如何在模板中创建可写索引别名

时间:2021-01-06 09:32:43

标签: elasticsearch

我正在尝试创建一个具有可写别名的索引模板。我的生命周期翻转策略需要一个可写的别名。以下是我的要求:

PUT _template/my-alias
{
  "index_patterns": [
    "customer*"
  ],
  "aliases": {
    "customer-alias": {
      "index": "customer*",
      "alias": "customer-alias",
      "is_write_index": true
    }
  }
}

但是在创建与索引模式匹配的新索引后,创建的别名是不可写的。

customer-alias          customer-x                     - - - -

0 个答案:

没有答案