elasticsearch报错exceptions.RequestError(400, u’mapper_parsing_exception’, u’No handler field..

  • Post author:
  • Post category:其他


在ElasticSearch创建index索引时,报错:elasticsearch.exceptions.RequestError: RequestError(400, u’mapper_parsing_exception’, u’No handler for type [string] declared on field [link]’),如下:

原因:


你用的是什么版本的ElasticSearch,5.X以上版本没有string类型了,换成了text和keyword作为字符串类型。

替换:

参考:

https://blog.csdn.net/heatdeath/article/details/79510150



版权声明:本文为sinat_33718563原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。