第一步:创建索引
第二步:设置mapping(映射)信息
创建索引mapping映射语句示例:
{
"properties": {
"exception": {
"type": "keyword"
},
"callResourceName": {
"type": "keyword"
},
"createTime": {
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis",
"type": "date"
},
"createId": {
"type": "keyword"
},
"status": {
"type": "keyword"
}
}
}