Added option for remote elasticsearch server