switch elasticsearch index