Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy integration with bonsai on heroku #24

Open
bompi88 opened this issue Aug 18, 2013 · 2 comments
Open

Easy integration with bonsai on heroku #24

bompi88 opened this issue Aug 18, 2013 · 2 comments

Comments

@bompi88
Copy link
Contributor

bompi88 commented Aug 18, 2013

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?

@mguillermin
Copy link
Contributor

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.

@nz
Copy link

nz commented Mar 4, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants