title: How to fix the URI does not specify a valid host name in ClientProtocolException:
body: <p>When I execute the elastic search java API using jest client, I face the following error</p>
  <blockquote>
  <p>org.apache.http.client.ClientProtocolException: URI does not specify a valid host name:localhost:9200/index/type/_search</p>
  </blockquote>
  <p>I tries various possibilities to fix this error, but I am stuck. How can I fix this?</p>