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导包问题。

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

相关推荐
百流38 分钟前
ES使用之查询方式
android·大数据·elasticsearch
hnlucky2 小时前
hadoop伪分布式模式
大数据·hadoop·分布式
wangzhongyudie2 小时前
SQL实战:05之间隔连续数问题求解
大数据·数据库·sql
Json_181790144804 小时前
闲鱼商品详情API接口概述及JSON数据参考
android·大数据·python
ID_LWQ4 小时前
多智能体协同作战:MagenticOne如何指挥一支AI团队
大数据·人工智能
Zhen (Evan) Wang4 小时前
WPF常用技巧汇总 - Part 2
java·大数据·wpf
chde2Wang5 小时前
Flume启动报错
大数据·flume
安达发11 小时前
安达发|高效智能塑料切割数控系统 - 全自动化软件解决方案
大数据·运维·人工智能·自动化·aps排产软件·智能优化排产软件
凉白开33814 小时前
Spark-streaming
大数据·分布式·spark
杜子腾dd14 小时前
7.Excel:单元格格式
大数据·自动化·excel