made host config of elastic search configurable