Closed ApproximateIdentity closed 8 years ago
Of course I figure it out after posting this that the correct flag is request_timeout
. I couldn't find this in the docs, but if I pass in request_timeout=20
I can drop in with a debugger and verify at that point that the timeout does get set to 20. So I'm going to go ahead and close this.
Leaving here in case anyone has the same issue - it's documented in the Global Options part of the API docs: http://elasticsearch-py.readthedocs.org/en/master/api.html#timeout
I'm using elasticsearch-py version 2.2.0 (which matches my server).
How do I change the default connection timeout of 10 seconds to something longer for the Elasticsearch.mtermvectors() method? It seems to me the problem is not an es timeout, but a timeout in the underlying urllib3 module. I don't see anything in the documentation:
http://elasticsearch-py.readthedocs.org/en/master/api.html#elasticsearch.Elasticsearch.mtermvectors
I've also tried just passing in a timeout parameter, but that isn't recognized. Here is the important part of the stack trace (though I don't think it really helps much):