I have a Java application that is using ElasticSearch API to connect to Bonsai on Heroku. After deploying my app to Heroku I've found that it will be impossible to connect to a traditional ElasticSearch address 127.0.0.1:9300
via TransportClient.
So I've changed TransportAddress to the one below after reading one of the answers here.
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY)
.addTransportAddress(new TransportAddress(InetAddress.getByName("http://juniper-325345373.eu-west-1.bonsaisearch.net/"), 80));
However now I'm getting a java.net.UnknownHostException: http://juniper-325345373.eu-west-1.bonsaisearch.net/: Name or service not known
How should I correctly define the address in order to connect to Bonsai ElasticSearch?