在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.youkuaiyun.com/heatdeath/article/details/79510150