gpt4 book ai didi

elasticsearch - 获取此根映射定义具有不受支持的参数:在Kibana控制台中的查询下方运行时,mapper_parsing_exception

转载 作者:行者123 更新时间:2023-12-03 02:11:05 25 4
gpt4 key购买 nike

从互联网提取了此查询

PUT developer
{
"mappings": {
"developer": {
"properties": {
"name": {
"type": "text"
},
"skills": {
"type": "object",
"properties": {
"language": {
"type": "keyword"
},
"level": {
"type": "keyword"
}
}
}
}
}
}
}

在kibana控制台中运行此查询时
  • 遇到此错误
  • "caused_by" : {
    "type" : "mapper_parsing_exception",
    "reason" : "Root mapping definition has unsupported parameters: [developer : {properties={skills={type=object, properties={level={type=keyword}, language={type=keyword}}}, name={type=text}}}]"
    }
  • 使用的版本
  • Kibana 7.9.3
  • Elasticsearch 7.9.3

  • 最佳答案

    您需要删除developer类型(在mappingsproperties之间),作为have been deprecated类型:

      PUT developer
    {
    "mappings": {
    "properties": {
    "name": {
    "type": "text"
    },
    "skills": {
    "type": "object",
    "properties": {
    "language": {
    "type": "keyword"
    },
    "level": {
    "type": "keyword"
    }
    }
    }
    }
    }
    }

    关于elasticsearch - 获取此根映射定义具有不受支持的参数:在Kibana控制台中的查询下方运行时,mapper_parsing_exception,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64661869/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com