1

Does the ElasticSearch Java client use the ES cluster's REST API behind the scenes? I'm wondering if it's possible to deploy an ES cluster via AWS ElasticBeanstalk which requires .wars. There's a method for deploying ES as a .war but it offers only the REST interface.

1 Answer 1

1

No, ES's REST API is using the Java API internally (see here) so the Java client is not going through the REST API.

If you deployed ES is only providing the REST API, I guess you'll have to use it even from a Java app.

2
  • Thanks - any idea how the Java API is manifested? Some custom protocol over TCP? RMI?
    – DeejUK
    Aug 30, 2012 at 8:48
  • According to this code, it uses Netty and TCP
    – A21z
    Aug 30, 2012 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.