【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