From aed7ec0d030b14eaadaaceb0ce6279e7cfd3a961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Tue, 9 Jun 2015 19:21:23 +0200 Subject: [PATCH] Added flush_synced API --- elasticsearch/client/indices.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index 64e087e7..1c543ea2 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -954,3 +954,16 @@ class IndicesClient(NamespacedClient): _, data = self.transport.perform_request('GET', _make_path(index, '_upgrade'), params=params) return data + + @query_params() + def flush_synced(self, index=None, params=None): + """ + ``_ + + :arg index: A comma-separated list of index names; use `_all` or empty + string for all indices + """ + _, data = self.transport.perform_request('POST', _make_path(index, + '_flush', 'synced'), params=params) + return data +