(self, **kwargs)
return self
Add aliases to the index definition::

            i = Index('blog-v2')
            i.aliases(blog={}, published={'filter': Q('term', published=True)})
Add aliases to the index definition::
Add aliases to the index definition ::
def aliases(self, **kwargs):
        """
        Add aliases to the index definition::

            i = Index('blog-v2')
            i.aliases(blog={}, published={'filter': Q('term', published=True)})
        """
        self._aliases.update(kwargs)
        return self
def aliases ( self , * * kwargs ) : self . _aliases . update ( kwargs ) return self