Converting curl commands to java client api

In elasticsearch, while using "curl", everything works like a charm.
But when we try to do it with java api, there is a lack of documentation.

java api in elasticsearch has very few examples:-
http://www.elasticsearch.org/guide/reference/java-api/client.html

However, for curl, there are hundreds of examples.

Is there any other link which provides java commands equivalent to curl
commands?

--

Not really what you are asking for, but you could give a look at:


HTH

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 déc. 2012 à 12:31, divyanshu das divyanshu.das@gmail.com a écrit :

In elasticsearch, while using "curl", everything works like a charm.
But when we try to do it with java api, there is a lack of documentation.

java api in elasticsearch has very few examples:-
http://www.elasticsearch.org/guide/reference/java-api/client.html

However, for curl, there are hundreds of examples.

Is there any other link which provides java commands equivalent to curl commands?

--

--

:slight_smile: That is not also a true answer to your question as well but if you are
fine by http rest try Jest, https://github.com/searchbox-io/Jest

On Thursday, December 6, 2012 1:31:29 PM UTC+2, divyanshu das wrote:

In elasticsearch, while using "curl", everything works like a charm.
But when we try to do it with java api, there is a lack of documentation.

java api in elasticsearch has very few examples:-
http://www.elasticsearch.org/guide/reference/java-api/client.html

However, for curl, there are hundreds of examples.

Is there any other link which provides java commands equivalent to curl
commands?

--