fix elastic search index; favor localhost