make elasticsearch url/index configurable
update queries for ES >= 1.0