You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The provided add-on seems to only expose the HTTP API (probably bound to port 80). The only solution to connect to Bonsai from Java is probably to make HTTP calls "by hand" or to use a client like Jest.
The module is based on the ElasticSearch Java API that uses the "TransportClient" API to communicate with ElasticSearch, therefore it cannot talk to the HTTP API.
I never used Jest, but it will certainly require a lot of work to allow the module to use it instead of the ElasticSearch Java API.
Nick with Bonsai here. You're correct that we only expose HTTP right now on our shared cluster plans. The native Elasticsearch transport protocol is available for dedicated clusters (email us for info about that).
I'm open to helping make integration with Java easier for apps where Jest or "hand-coded" HTTP+JSON isn't a great option. Feedback is welcome.
From the heroku add-on Bonsai you get an address like this, without any port number:
http://ksn3n2:[email protected]
IndexClient.java relies on ip and port number only. How to get around this problem?
The text was updated successfully, but these errors were encountered: