解决elasticsearch时报错elasticsearch.exceptions.RequestError:的问题
在将mysql中的数据上传至elasticsearch时出现这样的错误:elasticsearch.exceptions.RequestError: TransportError(400, 'mapper_parsing_exception', 'failed to parse')检查了一下原来是mapping的字段中有数据格式与实际的格式不符查了一下数据库中的数据格式,原...
·
在将mysql中的数据上传至elasticsearch时出现这样的错误:
elasticsearch.exceptions.RequestError: TransportError(400, 'mapper_parsing_exception', 'failed to parse')

检查了一下原来是
mapping的字段中有数据格式与实际的格式不符

查了一下数据库中的数据格式,原来是经纬度的顺序搞反了,应该是location【纬度,经度】,而我写成了【经度,维度】,所以在插入数据时报错。
更多推荐



所有评论(0)