我用的7+版本,使用插件postman的时候,PUT提交报错
代码:
{
"setting":{
"number_of_shards":3,
"number_of_replicas":1
},
"mapping":{
"man":{
"properties":{
"name":{
"type":"text"
},
"country":{
"type":"keyword"
},
"age":{
"type":"integer"
},
"data":{
"type":"data",
"format":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
},
"woman":{
}
}
}
报错信息如下:
{
"error": {
"root_cause": [
{
"type": "parse_exception",
"reason": "unknown key [mapping] for create index"
}
],
"type": "parse_exception",
"reason": "unknown key [mapping] for create index"
},
"status": 400
}
大神们如何解决?