How to connect ES in java


I m newbie of ES spend too much time for how to communicate ES with java find many article and example but get different-2 problem is there any simple example to how to done this ... any example , Step .. please suggest me..

Thx in advance


Start with the maven configuration

And follow the doc to create a new node and client. A tricky part here is that the port for java api is 9300 rather than 9200.

Kk brother got it follow this and done it.

one more question want to know can u chk this link and let me know use this
pattern , step to integration with project is good ..its a out of thread
ques sorry for this..


Arun Kumar

phone : +91 8427243081 or Email :

The link you provided looks quite straightforward. Not sure what your question is.