我的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": {
}
}
}
你那个不能重复提交 提交第二次就会报错
No handler for type [data] declared on field [data],应该是下图的位置处问题了,你查看一下是不是date写成了data