第一种方法,添加超时参数
第二种方法:
在es语句中添加超时参数
res = es.search(index=name, body=body, scroll=‘5m‘, size=100000, timeout=60)
第三种方法:
在连接处配置:
python操作es如何处理timeout超时的问题
原文:https://www.cnblogs.com/itBlogToYpl/p/13298328.html