亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

發送put請求報錯400

我的是elasticsearch5點幾的版本下面是我的json和報錯信息

{

"settings": {

"number_of_shards":3,

"number_of_replicas":1

},

"mappings":{

"properties": {

"name": {

"type": "text"

},

"country": {

"type": "keyword"

},

"age": {

"type": "integer"

},

"data": {

"type": "date",

"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"

}

}

}

報錯如下:

{

"error": {

"root_cause": [

{

"type": "mapper_parsing_exception",

"reason": "Root mapping definition has unsupported parameters: ?[birthday : {format=yyyy-MM-dd HHmmss||yyyyMMdd||epoch_millis, type=date}] [country : {type=keyword}] [name : {type=text}] [age : {type=integer}]"

}

],

"type": "mapper_parsing_exception",

"reason": "Failed to parse mapping [properties]: Root mapping definition has unsupported parameters: ?[birthday : {format=yyyy-MM-dd HHmmss||yyyyMMdd||epoch_millis, type=date}] [country : {type=keyword}] [name : {type=text}] [age : {type=integer}]",

"caused_by": {

"type": "mapper_parsing_exception",

"reason": "Root mapping definition has unsupported parameters: ?[birthday : {format=yyyy-MM-dd HHmmss||yyyyMMdd||epoch_millis, type=date}] [country : {type=keyword}] [name : {type=text}] [age : {type=integer}]"

}

},

"status": 400

}


正在回答

0 回答

舉報

0/150
提交
取消

發送put請求報錯400

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號