def put_mapping(self, mapping, doctype, indexes=['_all']):
        path = self._make_path([','.join(indexes), doctype, '_mapping'])
        self.send_request('PUT', path=path, body=mapping)
        return self._parse_json_response(self.last_response.text)

    #Cluster related API
Register a mapping definition for a specific type. You can
dataset/ETHPy150Open eriky/ESClient/esclient.py/ESClient.put_mapping