国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true

這篇具有很好參考價值的文章主要介紹了The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

創(chuàng)建es索引模板時報(bào)錯,因?yàn)閑s7不支持type了,只有一個默認(rèn)的_doc。

解決方法:在url里設(shè)置 include_type_name=true


PUT http://10.10.101.140:30092/_template/testaa?include_type_name=true

{
"order":1,
"index_patterns":["testaa-*"],
"mappings":{
    "_doc":{
   "properties":{
     "middleware_name":{
        "type":"keyword",
        "index":true
     },
     "k8s_pod_namespace":{
        "type":"keyword",
        "index":true
     },
     "query":{
        "type":"text",
        "index":true,
        "analyzer":"ik_max_word"
     }
    }
    }
},
"settings":{
   "index": {
      "max_result_window": "30000000"
    }
}
}

Error create index template in ES 6.7 - Elasticsearch - Discuss the Elastic Stack文章來源地址http://www.zghlxwxcb.cn/news/detail-529060.html

到了這里,關(guān)于The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Goland Cannot use ‘err‘ (type error) as the type any

    Goland Cannot use ‘err‘ (type error) as the type any

    問題描述: 用Goland寫代碼的時候,使用panic總是報(bào)錯,官方用法也是報(bào)錯,最后找到官方回復(fù)的鏈接,https://youtrack.jetbrains.com/issue/GO-12179/Cannot-use-err-type-error-as-the-type-any 問題解決方式: Update the IDE instance to the latest available version: 2021.3.4. 就是升級你的GoLand升級到2021.3.4,好像

    2024年02月07日
    瀏覽(21)
  • 【the import cannot be resolved問題可以通過以下方法解決】

    eclipse 導(dǎo)入的項(xiàng)目后,src源碼類文件代碼的import xx.xxx.xx 識別不了其他包的類。提示the import can not be resolved project-clean ,重新編譯項(xiàng)目; 引入源碼文件 , 右鍵項(xiàng)目-build path - Config build path-source-add folder-選中每個module中的src; 重新導(dǎo)入依賴jar包 ,右鍵項(xiàng)目-build path - Config buil

    2024年02月11日
    瀏覽(103)
  • RuntimeError: Input type (unsigned char) and bias type (float) should be the same錯誤

    這個錯誤通常是由于輸入數(shù)據(jù)類型與模型參數(shù)的類型不匹配導(dǎo)致的。在PyTorch中,當(dāng)輸入的張量類型與模型的參數(shù)類型不匹配時,PyTorch會嘗試將它們轉(zhuǎn)換為相同的類型,但是當(dāng)它們的類型不可轉(zhuǎn)換時,就會出現(xiàn)這個錯誤。 解決辦法是確保輸入的張量類型與模型的參數(shù)類型相同

    2024年02月15日
    瀏覽(16)
  • RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the

    RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the

    問題描述: mobilenetv3在殘差塊中加入了注意力機(jī)制?用GPU 進(jìn)行訓(xùn)練時報(bào)的錯 解決方法1: 1,不用GPU 用CPU 就可以 CUDA 設(shè)置為False,確實(shí)可以解決,但是不用GPU 好像意義不大 解決方法2 : 用仍然用GPU ,看下面的的解決方案: 報(bào)錯的原因:2 1,我直接在倒殘差塊的前向傳播內(nèi)對導(dǎo)

    2024年02月16日
    瀏覽(24)
  • Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same

    RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensor 錯誤原因: 這個錯誤提示表明輸入數(shù)據(jù)的類型和模型權(quán)重的類型不匹配,可能是因?yàn)槟P蜋?quán)重是在GPU上訓(xùn)練的,而輸入數(shù)據(jù)是在CPU上進(jìn)行的。 可以

    2024年02月06日
    瀏覽(15)
  • RuntimeError: result type Float can‘t be cast to the desired output type long int

    RuntimeError: result type Float can‘t be cast to the desired output type long int

    在使用yolov5訓(xùn)練自定義數(shù)據(jù)集的運(yùn)行過程中報(bào)錯: **RuntimeError: result type Float can‘t be cast to the desired output type long int ** 并不是自己構(gòu)建的數(shù)據(jù)集有問題或者是下載更改后的代碼有問題。 問題原因: 從Github上clone 的yolov5-master版本的代碼是可以直接運(yùn)行的,因?yàn)楣倬W(wǎng)上clone 的代

    2024年02月14日
    瀏覽(24)
  • Latex找不到字體:Package fontspec: The font “simsun“ cannot be found

    Latex找不到字體:Package fontspec: The font “simsun“ cannot be found

    用Latex模板編譯的時候找不到字體報(bào)錯: Package fontspec: The font \\\"simsun\\\" cannot be found 根據(jù)知乎上的一個評論解決了,注釋掉模板文件.cls文件中關(guān)于newtx的內(nèi)容就行,參考網(wǎng)址: Latex 報(bào)錯:The font cannot be found. 怎么解決? - 沐祁的回答 - 知乎 https://www.zhihu.com/question/368619069/answer/2

    2023年04月08日
    瀏覽(16)
  • Tomcat報(bào)錯:cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map

    Tomcat報(bào)錯:cannot be cast to class java.util.Map (java.io.ObjectStreamClass$Caches$1 and java.util.Map

    啟動tomcat時會報(bào)如下錯誤,原因是tomcat與jdk的版本不匹配。當(dāng)然要因情況而異,給大家一個解決方法的思路 這是從tomcat官方文檔中找到對應(yīng)的jdk版本 后記 并不是tomcat與jdk版本匹配就一定不會問題,產(chǎn)生這個問題是我啟動activiti-app時發(fā)生的,當(dāng)時我的tomcat是9,JDK是11后來又換

    2024年01月21日
    瀏覽(17)
  • eclipse報(bào)錯:Multiple annotations found at this line: - String cannot be resolved to a type 解決方法

    eclipse報(bào)錯:Multiple annotations found at this line: - String cannot be resolved to a type 解決方法

    寫老師布置的作業(yè)從機(jī)房copy到自己的電腦上發(fā)現(xiàn)報(bào)錯了,以下是報(bào)錯信息: Multiple annotations found at this line: 在該行中找到的多個注釋 - String cannot be resolved to a type -string不能解析為類型 - The method getParameter(String) from the type ServletRequest refers to the missing tye string 從ServletRequest類型

    2024年02月10日
    瀏覽(27)
  • unity 發(fā)布報(bào)錯 The type or namespace name `UnityEditor‘ could not be found.

    引用了UnityEditor的內(nèi)容,發(fā)布當(dāng)然會報(bào)錯啦 加上宏判斷就好啦

    2024年02月12日
    瀏覽(36)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包