Added function for getting elastic search url
Changed so that elastic search queries is not hardcoded