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

在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

你可能感兴趣的:(ElasticSearch)