1.创建索引模板
PUT _template/template_base
{
"template": "模板名称",
"order": 2,
"index_patterns": ["模板名称*"],
"aliases": {
"模板别名 ": {}
},
"settings": {
"index": {
"number_of_shards": "分片数量",
"number_of_replicas": "副本数"
}
},
"mappings": {
"subscribe": {
"_all": {
"enabled": false
},
"dynamic_templates": [{
"strings": {
"match_mapping_type": "string",
"mapping": {
"type": "