自己用的es mapping文件
PUT /poc6
{
"settings": {
"index": {
"refresh_interval": "1s",
"number_of_shards": 5 ,
"number_of_replicas": 1,
"translog": {
"flush_threshold_size": "1gb",
"sync_interval": "30s",
"durability": "async"
}
}
},
"_all": {
"enabled": false
},
"mappings": {
"resultdata6": {
"dynamic_templates": [
{
"string_as_keyword": {
"match_mapping_type": "string",
"mapping": {
"type": "keyword"
}
}
}
],
"properties": {
"CUSTSCORE": {
"type": "integer"
},
"TRANSAMOUNT": {
"type": "double"
},
"transTime": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
}
}