From 0927c2e9492a1ae0575695a6994c34aa46b32a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 17 Jan 2014 23:29:29 +0100 Subject: [PATCH] Add force param to refresh --- elasticsearch/client/indices.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index fae9fd34..b3c23cbf 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -27,7 +27,8 @@ class IndicesClient(NamespacedClient): params=params, body=body) return data - @query_params('allow_no_indices', 'expand_wildcards', 'ignore_indices', 'ignore_unavailable') + @query_params('allow_no_indices', 'expand_wildcards', 'ignore_indices', + 'ignore_unavailable', 'force') def refresh(self, index=None, params=None): """ Explicitly refresh one or more index, making all operations performed @@ -45,6 +46,7 @@ class IndicesClient(NamespacedClient): ignore `missing` ones, default u'none' :arg ignore_unavailable: Whether specified concrete indices should be ignored when unavailable (missing or closed) + :arg force: Force a refresh even if not required """ _, data = self.transport.perform_request('POST', _make_path(index, '_refresh'), params=params)