I am using the java api for elasticsearch and was unable to find how to
check the status of my index response. If I create a percolator using the
following query
I get an index response. However I was unable to find a variable/method in
the same class returning the status of the operation, ie whether it was
successful or failed. I do get some data like id, version. Does a failure
not return id, version fields etc ??
I am using the java api for elasticsearch and was unable to find how to
check the status of my index response. If I create a percolator using the
following query
I get an index response. However I was unable to find a variable/method in
the same class returning the status of the operation, ie whether it was
successful or failed. I do get some data like id, version. Does a failure
not return id, version fields etc ??
I am using the java api for elasticsearch and was unable to find how to
check the status of my index response. If I create a percolator using the
following query
I get an index response. However I was unable to find a variable/method
in the same class returning the status of the operation, ie whether it was
successful or failed. I do get some data like id, version. Does a failure
not return id, version fields etc ??
Any help would be greatly appreciated.
Manoj Mohan
--
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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
I am using the java api for elasticsearch and was unable to find how to
check the status of my index response. If I create a percolator using the
following query
I get an index response. However I was unable to find a variable/method
in the same class returning the status of the operation, ie whether it was
successful or failed. I do get some data like id, version. Does a failure
not return id, version fields etc ??
Any help would be greatly appreciated.
Manoj Mohan
--
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 elasticsearc...@**googlegroups.com.
a search response is a bit different than a IndexResponse. A index response
simply returns that it has worked, but a SearchResponse can have more than
one status. For example individual shards can fail, but this still is a
valid search response (but yields a different HTTP response code for
example).
Hope this helps, if you need further information, just ask.
I am using the java api for elasticsearch and was unable to find how to
check the status of my index response. If I create a percolator using the
following query
I get an index response. However I was unable to find a variable/method
in the same class returning the status of the operation, ie whether it was
successful or failed. I do get some data like id, version. Does a failure
not return id, version fields etc ??
Any help would be greatly appreciated.
Manoj Mohan
--
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 elasticsearc...@**googlegroups.com.
The question is what you want to see to succeed or fail.
In the index request, you can specify a write consistency level (one,
quorum, all), and a replication type (sync, async). Normally you see an
async index response after the index request has been dispatched to the
participating nodes and a quorum of nodes responded. This is before the
document persists across all participating nodes. But you can change the
setting in the write consistency level.
Jörg
Am 04.07.13 16:15, schrieb Manoj Mohan:
Hmm.. thanks .. From the name it seemed it would give me a response
regardless of a success or a failure ....
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.