新
| | |
功能介绍
1.将
mapping中的properties内容转为struct如下:
{
"mappings": {
"properties": {
"doc_id": {
"type": "keyword"
},
"id": {
"type": "long"
},
"path": {
"type": "keyword"
},
"name": {
"type": "text"
},
"url": {
"type": "keyword"
},
"description": {
"type": "text"
},
"created_time": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss"
}
}
}
}
处理后
message Es2StructTmp {
string created_time = 1;
string description = 2;
string doc_id = 3;
int32 id = 4;
string name = 5;
string path = 6;
string url = 7;
}