Skip to content

Commit aed7ec0

Browse files
committed
Added flush_synced API
1 parent 23609dc commit aed7ec0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

elasticsearch/client/indices.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,3 +954,16 @@ def get_upgrade(self, index=None, params=None):
954954
_, data = self.transport.perform_request('GET', _make_path(index,
955955
'_upgrade'), params=params)
956956
return data
957+
958+
@query_params()
959+
def flush_synced(self, index=None, params=None):
960+
"""
961+
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html>`_
962+
963+
:arg index: A comma-separated list of index names; use `_all` or empty
964+
string for all indices
965+
"""
966+
_, data = self.transport.perform_request('POST', _make_path(index,
967+
'_flush', 'synced'), params=params)
968+
return data
969+

0 commit comments

Comments
 (0)