ES中Root mapping definition has unsupported parameters解决方案

ElasticsearchStatusException[Elasticsearch exception [type=mapper_parsing_exception, reason=Failed to parse mapping [properties]: Root mapping definition has unsupported parameters: [birthplace : {analyzer=ik_max_word, type=text}] [name : {analyzer=ik_max_word, type=text}] [age : {type=integer}]] ]; nested: ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=Root mapping definition has unsupported parameters: [birthplace : {analyzer=ik_max_word, type=text}] [name : {analyzer=ik_max_word, type=text}] [age : {type=integer}]]];

对于这个问题,可能有不同的情况,比如说前面一种是网上现在最常见的一种:

ElasticSearch7.0版本之后 ,禁止使用_doc了。

还有一种很逆天的报错,就是说在网页devtool中执行是没问题的,但是Java客户端却报错了,逆天了,原因是:CreateIndexRequest导包问题。

这里会有两个不同的包,我们选择的是第一个,我选中的那个:

相关推荐
210Brian27 分钟前
嘉立创EDA硬件设计与实战学习笔记(二):元件符号与封装的绘制
大数据·笔记·学习
历程里程碑1 小时前
Proto3 三大高级类型:Any、Oneof、Map 灵活解决复杂业务场景
java·大数据·开发语言·数据结构·elasticsearch·链表·搜索引擎
第二只羽毛1 小时前
IO代码解释3
java·大数据·开发语言
wanhengidc1 小时前
云手机与模拟器的关系
大数据·运维·服务器·分布式·智能手机
网络工程小王2 小时前
【Python数据分析基础】
大数据·数据库·人工智能·学习
CoderIsArt2 小时前
Sphinx
搜索引擎·全文检索·sphinx
方向研究2 小时前
尼龙66生产
大数据
Hello.Reader2 小时前
Pandas API on Spark 快速入门像写 Pandas 一样使用 Spark
大数据·spark·pandas
江瀚视野2 小时前
美丽田园经调净利大增41%,全方位增长未来何在?
大数据·人工智能
山峰哥3 小时前
索引设计失误让系统性能下降90%
大数据·服务器·数据库·oracle·性能优化