第一种方法,添加超时参数

python操作es如何处理timeout超时的问题

 

 第二种方法:

在es语句中添加超时参数

res = es.search(index=name, body=body, scroll='5m', size=100000, request_timeout=60)

第三种方法:

在连接处配置:

python操作es如何处理timeout超时的问题

 之前写的第二种方法有错误,现在已改正

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2021-12-27
  • 2022-01-18
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-02-12
猜你喜欢
  • 2021-06-06
  • 2022-12-23
  • 2021-06-20
  • 2021-05-22
  • 2021-09-21
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案