ES启动时就直接报错这个错误了:
mapper [userName] of different type, current_type [text], merged_type [keyword]
原因是我改了索引里的userName字段类型,把他从Text类型改成了Keyword类型。
解决方法:
直接重建原来的索引,换个索引名称,重新导入数据,很干脆,很直接。
ES启动时就直接报错这个错误了:
mapper [userName] of different type, current_type [text], merged_type [keyword]
原因是我改了索引里的userName字段类型,把他从Text类型改成了Keyword类型。
解决方法:
直接重建原来的索引,换个索引名称,重新导入数据,很干脆,很直接。