~ubuntu-branches/ubuntu/wily/python-elasticsearch/wily-proposed

« back to all changes in this revision

Viewing changes to elasticsearch/client/indices.py

  • Committer: Package Import Robot
  • Author(s): Michael Fladischer
  • Date: 2015-06-18 16:52:40 UTC
  • mfrom: (1.1.4) (2.2.3 sid)
  • Revision ID: package-import@ubuntu.com-20150618165240-fl2fbejwn9ifbxae
Tags: 1.6.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
954
954
        _, data = self.transport.perform_request('GET', _make_path(index,
955
955
            '_upgrade'), params=params)
956
956
        return data
 
957
 
 
958
    @query_params()
 
959
    def flush_synced(self, index=None, params=None):
 
960
        """
 
961
        Perform a normal flush, then add a generated unique marker (sync_id) to all shards.
 
962
        `<https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-synced-flush.html>`_
 
963
 
 
964
        :arg index: A comma-separated list of index names; use `_all` or empty
 
965
            string for all indices
 
966
        """
 
967
        _, data = self.transport.perform_request('POST', _make_path(index,
 
968
            '_flush', 'synced'), params=params)
 
969
        return data
 
970