第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

我用的7+版本,使用插件postman的時(shí)候,PUT提交報(bào)錯(cuò)

代碼:

{

"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":{

}

}

}

報(bào)錯(cuò)信息如下:

{

? ? "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

}

大神們?nèi)绾谓鉀Q?

正在回答

10 回答

Incorrect HTTP method for uri [/_mapping?pretty] and method [DELETE], allowed: [GET]
錯(cuò)誤的http請(qǐng)求方法 通過(guò)uri的delete方法,允許get
7.1不支持其他方法請(qǐng)求,http只能用get方法,可以通過(guò)kibana進(jìn)行其他的操作

0 回復(fù) 有任何疑惑可以回復(fù)我~

http://img1.sycdn.imooc.com//6050377a0001d8b905220330.jpg
7.x 寫法

0 回復(fù) 有任何疑惑可以回復(fù)我~

es7.x已經(jīng)沒(méi)有類型選擇,統(tǒng)一為_doc,所以要把man,woman刪除,直接設(shè)置屬性參數(shù)即可

{

? ?"settings":{

? ? "number_of_shards":3,

? ? "number_of_replicas":1

? ?},

? ?"mappings":{

? ? "properties":{

? ? "name":{

? ? "type":"text"

? ? },

? ? "age":{

? ? "type":"integer"

? ? },

? ? "country":{

? ? "type":"keyword"

? ? },

? ? "birthday":{

? ? "type":"date",

? ? "format":"yyyy-MM-dd HHmmss||yyyyMMdd||epoch_millis"

? ? }

? ?

? ? }

? ?}

}


2 回復(fù) 有任何疑惑可以回復(fù)我~

PUT http://bigdata111:9200/store1


{

"mappings": {

"properties": {

"name": {

"type": "text"

},

"age": {

"type": "long"

},

"birthday": {

"type": "date"

}

}

}

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

在 PUT請(qǐng)求中的鏈接中添加?include_type_name=true即可,如:

http://localhost:9200/people?include_type_name=true


2 回復(fù) 有任何疑惑可以回復(fù)我~

put提交指定id了嗎?

0 回復(fù) 有任何疑惑可以回復(fù)我~

你的這個(gè)問(wèn)題解決了嗎?急?。?!

0 回復(fù) 有任何疑惑可以回復(fù)我~

es 7+版本 取消了type 所以圖上的“man” type要?jiǎng)h除

3 回復(fù) 有任何疑惑可以回復(fù)我~

mapping? 寫錯(cuò)了 ! 是?mappings

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

HA習(xí)慣而已 提問(wèn)者

改了但是也沒(méi)用
2019-07-11 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

我用的7+版本,使用插件postman的時(shí)候,PUT提交報(bào)錯(cuò)

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)