get es index from es url, stop passing it as 2nd option