PUT /my-index-000001
索引名要求所有为小写,不能使用特殊字符,长度不能超过255字节。
PUT /my-index-000001 { "settings": { "number_of_shards": 5, // 分片数量,默认1 "number_of_replicas": 1 // 副本数量,默认1 } }
PUT /test { "settings": { "number_of_shards": 1 }, "mappings": { "properties": { "field1": { "type": "text" } } } }
DELETE /my-index-000001 DELETE /_all DELETE /*
支持以逗号分隔的列表或通配符表达式。
GET /my-index-000001 GET /_all GET /*
HEAD /my-index-000001
响应:app