利用python获取某个索引的全部字段时 第一次查询可以得到结果

但是再次利用scroll-id继续查的时候报错

raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.RequestError: <exception str() failed>
困扰了很久

结果发现时elasticsearch-dsl 的版本太高
查看自己elasticsearch的版本是 1.6
所以elastichsearch-dsl的版本应该小于2.0.0

参考:https://stackoverflow.com/questions/47235394/python-elasticsearch-exceptions-requesterror
   https://elasticsearch-dsl.readthedocs.io/en/latest/#compatibility

 


posted on 2018-10-17 15:25  大侠之运维  阅读(2197)  评论(0编辑  收藏  举报