原因可能很简单,只是由于一个空格,把format前面的空格去掉就成功了
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [updatetime] has unsupported parameters: [ format : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [sort]: Mapping definition for [updatetime] has unsupported parameters: [ format : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Mapping definition for [updatetime] has unsupported parameters: [ format : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]"
}
},
"status": 400