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 +