ES returns ok:true if status is 503

Hi,

why does ES returns ok:true if the status code is 503? I would expect
ok:false.

{
"ok" : true,
"status" : 503,
"name" : "proxy01",
"version" : {
"number" : "0.90.7",
"build_hash" : "36897d07dadcb70886db7f149e645ed3d44eb5f2",
"build_timestamp" : "2013-11-13T12:06:54Z",
"build_snapshot" : false,
"lucene_version" : "4.5.1"
},
"tagline" : "You Know, for Search"
}

Cheers
Jonny

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4aa02d00-2d1e-4aeb-869d-ab9ad0114fe6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

It's misleading, the ok:true is not related in any way to REST status. This
confusion will be removed in later versions, there are no more ok:true's
scattered over some responses . It was also inconsistent, not all responses
included an ok:true.

Jörg

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGmK9560K8AAY4XO5GCUE2RHspR4P%3DsaEpJRXNweu2G5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

"ok": true will be removed in next versions (1.0).

See https://github.com/elasticsearch/elasticsearch/issues/4310

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 10 janvier 2014 at 09:51:21, J. Schulz (js.bloonix@gmail.com) a écrit:

Hi,

why does ES returns ok:true if the status code is 503? I would expect ok:false.

{
"ok" : true,
"status" : 503,
"name" : "proxy01",
"version" : {
"number" : "0.90.7",
"build_hash" : "36897d07dadcb70886db7f149e645ed3d44eb5f2",
"build_timestamp" : "2013-11-13T12:06:54Z",
"build_snapshot" : false,
"lucene_version" : "4.5.1"
},
"tagline" : "You Know, for Search"
}

Cheers
Jonny

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4aa02d00-2d1e-4aeb-869d-ab9ad0114fe6%40googlegroups.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.52cfbba4.6b68079a.16eca%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.

Great. Thank you both for the quick response.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3d0be2ac-4033-4869-93b9-3121f58be405%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.