Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No 'status' response in 2.0.0-beta2 #14523

Closed
luke3141 opened this issue Nov 4, 2015 · 1 comment
Closed

No 'status' response in 2.0.0-beta2 #14523

luke3141 opened this issue Nov 4, 2015 · 1 comment

Comments

@luke3141
Copy link

luke3141 commented Nov 4, 2015

In ES 1.7 & earlier, a standard request curl localhost:9200 would return something like:

{
  "status" : 200,
  "name" : "Svarog",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.3",
    "build_hash" : "xxx",
    "build_timestamp" : "2015-10-15T01:01:01Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

the 'status' field appears to be dropped in 2.0:

{
  "name" : "Svarog",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "2.0.0-beta2",
    "build_hash" : "xxx",
    "build_timestamp" : "2015-09-1401:01:01Z",
    "build_snapshot" : false,
    "lucene_version" : "5.2.1"
  },
  "tagline" : "You Know, for Search"
}

Was this intentional, or unintentional?
If unintentional, will it be reinserted?

@dadoonet
Copy link
Member

dadoonet commented Nov 4, 2015

You should rely on HTTP status code instead.
That's the reason it was removed as it tells the same thing.

@dadoonet dadoonet closed this as completed Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants