阅读背景:

Elasticsearch 索引管理和内核探秘

来源:互联网 

1. 创建索引,修改索引,删除索引

//创建索引 PUT /my_index { "settings": { "number_of_shards": 1, "number_of_replicas": 0 }, "mappings": { "my_type": { "properties": { "my_field": { "type": "text" } } } } } //修改索引 PUT /my_index/_settings { "number_of_replicas": 1 } //删除索引 DELETE /my_index DELETE /index_one,index_two DELETE /index_* DELETE /_all //创建索引 PUT /my_index { "settings



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: