code: def create_connection(self, alias='default', **kwargs):
          
          kwargs.setdefault('serializer', serializer)
          conn = self._conns[alias] = Elasticsearch(**kwargs)
          return conn
docs: Construct an instance of ``elasticsearch.Elasticsearch`` and register
          it under given alias.