@query_params('allow_no_indices', 'expand_wildcards', 'flat_settings',
        'ignore_unavailable', 'master_timeout', 'preserve_existing')
    def put_settings(self, body, index=None, params=None):
        if body in SKIP_IN_PATH:
            raise ValueError("Empty value passed for a required argument 'body'.")
        return self.transport.perform_request('PUT', _make_path(index,
            '_settings'), params=params, body=body)
Change specific index level settings in real time.
dataset/ETHPy150Open elastic/elasticsearch-py/elasticsearch/client/indices.py/IndicesClient.put_settings