一、ES7报错

Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters

原因:es7不建议使用type,默认的type未doc,因此默认不支持指定type对应的mapping

解决方法:指定索引类型需修改参数include_type_name

PUT index/_mappings?include_type_name=true

但es8会弃用type,因此最好不要再使用type啦

es6中:
"mappings":{"language": {"properties": {"name": {"type": "text"}}}
}而es7:
"mappings":{"properties": {"name": {"type": "text"}}
}

二、关于es7取消type

ES中不同type下名称相同的filed最终在Lucene中的处理方式是一样的,必须在两个不同的type中定义相同的filed映射。否则,不同type中的相同字段名称就会在处理中出现冲突的情况,导致Lucene处理效率下降。
 
  例如在同一个索引people中,有两个类型student和teacher,两个类型中都有一个tel字段,如果student中tel字段定义为text,teacher中tel定义为long,那么在搜索时就会出现冲突。因此同index中存储不同type时应保持同名的filed的类型一致。

且在同一个索引中,存储仅有小部分字段相同或者全部字段都不相同的文档,会导致数据稀疏,影响Lucene有效压缩数据的能力。

参考链接:
https://blog.miuyun.work
https://github.com/elastic/elasticsearch/pull/37149
https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html
https://blog.csdn.net/zjx546391707/article/details/78631394

[Elasticsearch] Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters相关推荐

  1. 【ElasticSearch】ElasticSearch 7.x 默认不在支持指定索引类型 Failed to parse mapping [_doc]: Root mapping definitio

    1.概述 elasticsearch7默认不在支持指定索引类型,默认索引类型是_doc,如果想改变,则配置include_type_name: true 即可(这个没有测试,官方文档说的,无论是否可行 ...

  2. 【Elasticsearch】es Root mapping definition has unsupported parameters

    1.概述 转载:https://blog.csdn.net/u014646662/article/details/94718834 ElasticSearch 7.x 默认不在支持指定索引类型,在el ...

  3. es Root mapping definition has unsupported parameters解决方法

    ElasticSearch 7.x 默认不在支持指定索引类型 在elasticsearch7.x上执行: put es_test {"settings":{ "numbe ...

  4. ElasticSearch为索引库添加静态映射报:Failed to parse mapping [properties]: Root mapping definition has unsupport

    代码 PUT /my_index {"mappings": {"properties": {"title": {"type&quo ...

  5. 【Elasticsearch】es 7.12 Root mapping definition has unsupported parameters: _all

    1.场景1 1.1 概述 一个环境从es 6.8 升级到es 7.12 然后我执行一个rollover api 发现不能成功报错. Root mapping definition has unsupp ...

  6. Root mapping definition has unsupported parameters

    # 情境 今天在使用elasticsearch 7.93,在进行创建索引的时候,出现的问题# 有问题的创建语句 (本人使用的是elasticsearch-head谷歌插件) http://192.16 ...

  7. 报错:NestedIOException: Failed to parse mapping resource

    报错:NestedIOException: Failed to parse mapping resource 详细信息如下: BeanInstantiationException: Failed to ...

  8. Invalid VCS root mapping

    新的项目在 ide里打开报错 : Invalid VCS root mapping The directory File > Settings > Version Control      ...

  9. Android: Invalid VCS root mapping

    Invalid VCS root mapping The directory E:\AndroidWorkspace\SerialPortHelper-master is registered as ...

最新文章

  1. MySQL面试题 | 附答案解析(五)
  2. 开启SAP CDS view DCL前后的读取性能对比
  3. 根据数字生成唯一数字_PLSQL——根据上下数字生成等差数列补充空白行
  4. 【FFMPEG系列】之工具调试:gprof性能分析
  5. android crash分析工具,Android Crash之Native Crash分析
  6. 分类模型评估之ROC-AUC曲线和PRC曲线
  7. BigDecimal 加减乘除 | 比较大小 | 取最大最小值 | 保留小数位 |转String
  8. 企业常用的站内收索、QQ群、在线客服
  9. 关于AOP的几个问题
  10. hive中实现行转列_##[函数]Hive中行列转换(行转列)
  11. 《激荡三十年》十八、青春飞扬——互联网的崛起
  12. CSDN如何修改用户名(CSDN ID)、用户昵称以及自定义博客域名等
  13. 云知声临门一脚不敢踹:科大讯飞指其数据造假,业绩持续增长存疑
  14. 正版饥荒搜不到服务器,饥荒正版无法刷出服务器问题的解决方法
  15. 活出生命的意义-读后感
  16. 专家推荐面渣逆袭:JVM经典五十问,这下面试稳了
  17. 银行业“业务连续性”管理(上篇)
  18. 软件测试入职第一天应该做什么?
  19. 千亿级金融场景下,基于Pulsar的云原生消息队列有怎样的表现?
  20. 网站广告效果评测指标介绍

热门文章

  1. 计算机网络实验一——Cisco Packet Tracer网络仿真软件安装及使用
  2. 数据分析中常用到EXCEL快捷键合集
  3. Mac安装 git-lfs 出现 Command failed with exit 128: git
  4. uniapp实现长按复制
  5. linux sed命令详解,linux命令之sed命令详解
  6. 一加和OPPO全面融合,OPPO门店即可体验一加手机
  7. 一加账号app_一加帐号手机服务全面升级,将由欢太 HeyTap 提供服务
  8. JavaScript面试题:new具体做了什么?
  9. vue 适配Markdown格式
  10. 万方论文基本数据爬取