Dan/instantiate elasticsearch