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

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

PUT報錯

{
??? "error": {
??????? "root_cause": [
??????????? {
??????????????? "type": "mapper_parsing_exception",
??????????????? "reason": "Root mapping definition has unsupported parameters:? [man : {properties={date={format=yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis, type=date}, country={type=keyword}, name={type=text}, age={type=integer}}}]"
??????????? }
??????? ],
??????? "type": "mapper_parsing_exception",
??????? "reason": "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:? [man : {properties={date={format=yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||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:? [man : {properties={date={format=yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis, type=date}, country={type=keyword}, name={type=text}, age={type=integer}}}]"
??????? }
??? },
??? "status": 400
}

正在回答

3 回答

elasticsearch7默認(rèn)不在支持指定索引類型,默認(rèn)索引類型是_doc,如果想改變,則配置include_type_name: true 即可(這個沒有測試,官方文檔說的,無論是否可行,建議不要這么做,因為elasticsearch8后就不在提供該字段)。

{

?????? "settings": {

????????????? "number_of_shards": 3,

????????????? "number_of_replicas": 1

?????? },

?????? "mappings" : {

??????? "properties" : {

??????????? "name": {

??????????????????????????? "type": "text"

???????????????????? },

???????????????????? "country": {

??????????????????????????? "type": "keyword"

???????????????????? },

???????????????????? "age": {

??????????????????????????? "type": "integer"

???????????????????? },

???????????????????? "date": {

??????????????????????????? "type": "date",

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

???????????????????? }

??????? }

??? }

}


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

這個問題解決了沒?如果解決了,怎么解決的?

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

我也這個錯,一臉懵逼...

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

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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