def create_index_alias(self):
        if self.es.indices.exists_alias(self.index_name):
            logger.info('index alias already exists')
        self.es.indices.put_alias(
            index='%s-*' % self.index_name,
            name=self.index_name,
        )
dataset/ETHPy150Open deliveryhero/lymph/lymph/utils/event_indexing.py/DatedEventIndex.create_index_alias/original