【ElasticSearch】索引:添加、更新、删除

======================================================================

1、添加

2、更新

3、删除

4、关闭打开

======================================================================

索引

1、添加

PUT get-together
{
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 1
  },
  "mappings": {
    "properties": {
      "name": {
        "type": "text",
        "index": true
      }
    }
  }
}

2、更新

PUT get-together/_mapping
{
  "properties": {
    "age": {
      "type": "integer"
    }
  }
}

3、删除

DELETE get-together

4、关闭打开

POST get-together/_close
POST get-together/_open

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2018-08-17
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-08-04
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案