当前位置:   article > 正文

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

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小惠珠哦/article/detail/844628
推荐阅读
相关标签
  

闽ICP备14008679号