<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_connection(self, alias='default', **kwargs):
 """ Construct an instance of ``elasticsearch.Elasticsearch`` and register it under given alias. """

        kwargs.setdefault('serializer', serializer)
        conn = self._conns[alias] = Elasticsearch(**kwargs)
        return conn