elasticsearch报错cannot unmarshal object into Go struct field

elasticsearch报错cannot unmarshal object into Go struct field,第1张

elasticsearch报错cannot unmarshal object into Go struct field

安装elasticsearch7,使用查询的时候出现报错信息cannot unmarshal object into Go struct field

原因
安装的elasticsearch与导入的elasticsearch库版本不匹配

解决方法:
如果使用elasticsearch库是
github.com/olivere/elastic v6.2.35+incompatible
那么相应的要安装elasticsearch6.2

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5682058.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存