parameterizing elasticsearch url