def client(self):
        """Get an elasticsearch client
        """
        if not hasattr(self, "_client"):
            self._client = connections.get_connection("default")
        return self._client
def client ( self ) : if not hasattr ( self , "_client" ) : self . _client = connections . get_connection ( "default" ) return self . _client
Get an elasticsearch client