Added support to query other elastic search server instance based on configuration.