elasticsearch

1、删除索引

DELETE /

2、创建索引

PUT test

3、获取索引

GET test

4、获取索引映射mapping

GET test/_mapping

5、获取所有索引映射

GET /_mapping

6、创建索引别名

POST /_aliases
{
  "actions": [
    {
      "add": {
        "index": "test",
        "alias": "test33"
      }
    }
  ]
}

7、删除别名

POST /_aliases
{
  "actions": [
    {
      "remove": {
          "index": "test",
        "alias": "test33"
      }
    }
  ]
}

原文地址:https://www.cnblogs.com/agang-php/p/11368142.html