Currently the best way to learn the Java API is to view the Elasticsearch
search code.

All the REST examples use the Java API underneath, so you can see how the
Java API is used by viewing a REST action such as RestSearchAction,
RestIndexAction, etc...

https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action

The unit tests are another great place to see how the Java API is used,
with actual examples:

https://github.com/elasticsearch/elasticsearch/tree/master/src/test/java/org/elasticsearch

Cheers,

Ivan


On Thu, Jul 3, 2014 at 7:08 AM, Alain Désilets <[email protected]>
wrote:

> I am a total newbie to ElasticSearch, and I have been using the following
> tutorial to get started:
>
>
> http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/getting-started.html
>
> I'm finding it really easy to follow and informative.
>
> Now, I want to use the Java API to write a Java program that uses
> ElasticSearch, but I can't find an equally helpful tutorial for the Java
> API. I am surfing and searching through the API documentation, but can't
> figure out how to do even easy operations like: create an index, put a
> document into it, retrieve it, etc...
>
> Of course, I could always write methods that send HTTP requests, at which
> point I could rely on what I learned through the above tutorial. But I
> would prefer to use a more direct link provided by the Java API.
>
> Does someone know of a good tutorial on the Java API?
>
> Thx.
>
> Alain  Désilets
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/b0723c1e-8f14-4df2-a80e-a4a4646503a0%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/b0723c1e-8f14-4df2-a80e-a4a4646503a0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQC7nMYGejLfaNkJCjPLppf-or7axq6G97TKewPH5r%3DZfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to