From c5f91faaad1ec7909ff865c22ce0b5999b8b6304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Wed, 2 Jul 2014 16:19:23 +0200 Subject: [PATCH] Added docs for request_timeout --- docs/api.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index 44751bd0..70bcb695 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -26,6 +26,13 @@ them:: # ignore 404 and 400 es.indices.delete(index='test-index', ignore=[400, 404]) +You can also specify ``request_timeout`` (float) as part of any API call, this +value will get passed to the ``perform_request`` method of the connection +class:: + + # only wait for 1 second, regardless of the client's default + es.cluster.health(wait_for_status='yellow', request_timeout=1) + .. note:: for compatibility with the Python ecosystem we use ``from_`` instead of