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

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

 


 
                    
            
                

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-20
  • 2022-01-20
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2021-10-25
  • 2021-08-12
  • 2022-12-23
  • 2021-09-30
  • 2021-07-12
  • 2022-12-23
相关资源
相似解决方案