When I execute the elastic search java API using jest client, I face the following error
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name:localhost:9200/index/type/_search
I tries various possibilities to fix this error, but I am stuck. How can I fix this?
You just need to add http://
at the beginning of the URI.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With