Definition of status code being returned when Indexing


#1

I have been trying to find some information about the status codes being returned when I index data, but I have had no success. Can anybody point me to the spot in the docs that this is documented?

An example:

{ "took" : 3,
"errors" : false,
"items" : [ {
"index" : {
"_index" : "ib_1",
"_type" : "individuals",
"_id" : "42",
"_version" : 17,
"status" : 200}}]}

In the above example I know status 200 indicates a successful update (based on experience), but what are the meanings of all the other statuses being returned?

Thanks in advance.


(David Pilato) #2

Basically it's this: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Note that you should rely only on the http status code and not on the status field as it has been removed in 2.0 IIRC.


#3

Thanks for the info.

I am assuming it is still used for the Bulk API? Is that assumption correct?


(David Pilato) #4

You're right. I missed you were talking about bulk API.

status is still there.


#5

Perfect, thanks.


(system) #6