curl -XPUT“172.22.21.21:9200/gateway”-d'
{
“settings”:{
“index”:{
“number_of_replicas”:“1”,
“number_of_shards”:“5”
}
},
“mappings”:{
“ api_gateway_statistics“:{
”properties“:{
”starttime“:{
”type“:”date“,
”format“:”yyyy-MM-dd HH:mm:ss“
},
”endtime“:{
”type“:”日期“,
”格式“:”yyyy-MM-dd HH:mm:ss“
},
”year“:{
”type“:”integer“,
“index”:“not_analyzed”
},
“month”:{
“type”:“integer”,
“index”:“not_analyzed”
},
“day”:{
“type”:“integer”,
“index”:“not_analyzed “
},
”hour“:{
”type“:”integer“,
”index“:”not_analyzed“
},
”starttime_long“:{
”键入“:”long“,
”index“:”not_analyzed“
},
”endtime_long“:{
“type”:“long”,
“index”:“not_analyzed”
}
}
}
}
}'
es mapping模板
最新推荐文章于 2024-04-12 23:14:07 发布