def put_warmer(self, doc_types=None, indices=None, name=None, warmer=None, querystring_args=None):
        """
        Put new warmer into index (or type)

        :param doc_types: list of document types
        :param warmer: anything with ``serialize`` method or a dictionary
        :param name: warmer name
        :param querystring_args: additional arguments passed as GET params to ES
        """
        if not querystring_args:
            querystring_args = {}
        doc_types_str = ''
        if doc_types:
            doc_types_str = '/' + ','.join(doc_types)
        path = '/{0}{1}/_warmer/{2}'.format(','.join(indices), doc_types_str, name)
        if hasattr(warmer, 'serialize'):
            body = warmer.serialize()
        else:
            body = warmer
        return self._send_request(method='PUT', path=path, body=body, params=querystring_args)
def put_warmer ( self , doc_types = None , indices = None , name = None , warmer = None , querystring_args = None ) : if not querystring_args : querystring_args = { } doc_types_str = '' if doc_types : doc_types_str = '/' + ',' . join ( doc_types ) path = '/{0}{1}/_warmer/{2}' . format ( ',' . join ( indices ) , doc_types_str , name ) if hasattr ( warmer , 'serialize' ) : body = warmer . serialize ( ) else : body = warmer return self . _send_request ( method = 'PUT' , path = path , body = body , params = querystring_args )
Put new warmer into index (or type)

        :param doc_types: list of document types
        :param warmer: anything with ``serialize`` method or a dictionary
        :param name: warmer name
        :param querystring_args: additional arguments passed as GET params to ES