PUT提交報錯,我沒有寫2個MAN,為什么還會報一些看不明白的錯
{
"settings": {
"number_of_shards":3,
"number_of_replicas":1
},
"mappings": {
"man": {
"properties": {
"name": {
"type": "text"
},
"country":{
"type" : "keyword"
},
"age":{
"type": "integer"
},
"date":{
"type": "date",
"formate":"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
}
}
{
? ? "error": {
? ? ? ? "root_cause": [
? ? ? ? ? ? {
? ? ? ? ? ? ? ? "type": "mapper_parsing_exception",
? ? ? ? ? ? ? ? "reason": "Mapping definition for [date] has unsupported parameters:? [formate : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]"
? ? ? ? ? ? }
? ? ? ? ],
? ? ? ? "type": "mapper_parsing_exception",
? ? ? ? "reason": "Failed to parse mapping [man]: Mapping definition for [date] has unsupported parameters:? [formate : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]",
? ? ? ? "caused_by": {
? ? ? ? ? ? "type": "mapper_parsing_exception",
? ? ? ? ? ? "reason": "Mapping definition for [date] has unsupported parameters:? [formate : yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]"
? ? ? ? }
? ? },
? ? "status": 400
}
2018-08-08
謝謝,,··
2018-08-06
formate --》format ?