put提交错误,请问该如何解决
我的es是6.4.0版本的 报错如下:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "No handler for type [data] declared on field [data]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [man]: No handler for type [data] declared on field [data]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "No handler for type [data] declared on field [data]"
}
},
"status": 400
}
请问我该如何修改:
{
"settings": {
"number_of_shards": 3,
"number_of_replicas": 1
},
"mappings": {
"man": {
"properties": {
"name": {
"type": "text"
},
"country": {
"type": "keyword"
},
"age": {
"type": "data"
},
"data": {
"type": "data",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-DD||epoch_millis"
}
}
},
"woman": {
}
}
}