scroll 查询是很常见的,当使用时,提示错误,
socket.timeout: The read operation timed out |
而 python 的 scroll 查询是没有查询时间设置的。这是我们可以通过修改 es 连接的超时参数来处理。
es = Elasticsearch(hosts=url, timeout=60, retry_on_timeout=True) |
改动之后, 就 ok 了。
scroll 查询是很常见的,当使用时,提示错误,
socket.timeout: The read operation timed out |
而 python 的 scroll 查询是没有查询时间设置的。这是我们可以通过修改 es 连接的超时参数来处理。
es = Elasticsearch(hosts=url, timeout=60, retry_on_timeout=True) |
改动之后, 就 ok 了。