def init_db_conn(connection_name, HOSTS=None):
    """
    Initialize a redis connection by each connection string
    defined in the configuration file
    """
    el = elasticsearch.Elasticsearch(hosts=HOSTS)
    el_pool.connections[connection_name] = ElasticSearchClient(el)
def init_db_conn ( connection_name , HOSTS = None ) : el = elasticsearch . Elasticsearch ( hosts = HOSTS ) el_pool . connections [ connection_name ] = ElasticSearchClient ( el )
Initialize a redis connection by each connection string
    defined in the configuration file