Complete reference of Java API


(Mohit Anchlia) #1

Is there a place I can get a complete reference of Java API. I am looking
at
http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/index_.html
but
it looks like it doesn't provide complete guide. For instance how do I know
if a document was indexed successfully using IndexResponse object?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Ivan Brusic) #2

There is no complete reference for the Java API. Better documentation is
coming from the elasticsearch team, but I am not sure if that includes
anything about the Java API (I have a feeling it will focus on using the
REST API).

My method for understanding the Java API is to view both the tests and the
various REST actions:

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

In your case, perhaps IndexActionTests can help:

Cheers,

Ivan

On Thu, Nov 7, 2013 at 5:36 PM, Mohit Anchlia mohitanchlia@gmail.comwrote:

Is there a place I can get a complete reference of Java API. I am looking
at
http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/index_.html but
it looks like it doesn't provide complete guide. For instance how do I know
if a document was indexed successfully using IndexResponse object?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Mohit Anchlia) #3

Thanks!

On Thu, Nov 7, 2013 at 6:28 PM, Ivan Brusic ivan@brusic.com wrote:

There is no complete reference for the Java API. Better documentation is
coming from the elasticsearch team, but I am not sure if that includes
anything about the Java API (I have a feeling it will focus on using the
REST API).

My method for understanding the Java API is to view both the tests and the
various REST actions:

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

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

In your case, perhaps IndexActionTests can help:

https://github.com/elasticsearch/elasticsearch/blob/917a3c3b9dd26b623144eeffa2462ffced8c4ec5/src/test/java/org/elasticsearch/indexing/IndexActionTests.java

Cheers,

Ivan

On Thu, Nov 7, 2013 at 5:36 PM, Mohit Anchlia mohitanchlia@gmail.comwrote:

Is there a place I can get a complete reference of Java API. I am looking
at
http://www.elasticsearch.org/guide/en/elasticsearch/client/java-api/current/index_.html but
it looks like it doesn't provide complete guide. For instance how do I know
if a document was indexed successfully using IndexResponse object?

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4