利用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