mapper [userName] of different type, current_type [text], merged_type [keyword]

ES启动时就直接报错这个错误了:

mapper [userName] of different type, current_type [text], merged_type [keyword]

原因是我改了索引里的userName字段类型,把他从Text类型改成了Keyword类型。

解决方法:

直接重建原来的索引,换个索引名称,重新导入数据,很干脆,很直接。

发布了136 篇原创文章 · 获赞 109 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_38106322/article/details/103924979
今日推荐