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

Show human readable Elasticsearch version that created index #11484

Closed
pickypg opened this issue Jun 3, 2015 · 2 comments
Closed

Show human readable Elasticsearch version that created index #11484

pickypg opened this issue Jun 3, 2015 · 2 comments
Assignees
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates >enhancement help wanted adoptme v2.0.0-beta1

Comments

@pickypg
Copy link
Member

pickypg commented Jun 3, 2015

Currently, you can see the Version ID of Elasticsearch that created an index by checking the index's settings:

$ curl -XGET localhost:9200/test/_settings?pretty\&human
{
  "test" : {
    "settings" : {
      "index" : {
        "creation_date" : "1433353647548",
        ...
        "version" : {
          "created" : "1050299"
        },
        ...
      }
    }
  }
}

The value for index.version.created is not human readable. It is exactly the value of org.elasticsearch.Version.V_1_5_2_ID. The value, 1050299, is the same as 01050299, which maps to XXYYZZAA where:

// The logic for ID is (read from the right to avoid missing implied 0s):
// XXYYZZAA, where
// - XX is major version
// - YY is minor version
// - ZZ is revision,
// - AA is Beta/RC indicator
//   - values below 50 are beta builds
//   - values below 99 are RC builds
//   - exactly 99 indicates a release

XX=01
YY=05
ZZ=02
AA=99

It's great that we get a version, but it's not immediately readable. Moving into ES 2.0, when we enable doc values by default, it will be useful to be able to explain to users that indices created using prior to 2.0 will not have doc values by default, but those created afterward will have them. It will be helpful to have a way to see the version number akin to the version.number that appears when you hit the root endpoint:

$ curl -XGET localhost:9200/
{
  ...
  "version" : {
    "number" : "1.5.2",
    ...
    "lucene_version" : "4.10.4"
  },
  ...
}

... rather than having to check to see if it starts with a 2 and it is 7 digits long (as opposed to 6 digits long, indicating 0.20!).

@pickypg pickypg added >enhancement :Search/Suggesters "Did you mean" and suggestions as you type :Data Management/Indices APIs APIs to create and manage indices and templates discuss and removed :Search/Suggesters "Did you mean" and suggestions as you type labels Jun 3, 2015
@drewr
Copy link
Contributor

drewr commented Jun 3, 2015

👍

1 similar comment
@colings86
Copy link
Contributor

+1

imotov added a commit to imotov/elasticsearch that referenced this issue Jun 5, 2015
… when index was created

By setting human parameter to true, it's now possible to see human readable versions of Elasticsearch that created and updated the index as well as the date when the index was created.

Closes elastic#11484
@imotov imotov self-assigned this Jun 5, 2015
imotov added a commit to imotov/elasticsearch that referenced this issue Jun 17, 2015
… when index was created

By setting human parameter to true, it's now possible to see human readable versions of Elasticsearch that created and updated the index as well as the date when the index was created.

Closes elastic#11484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates >enhancement help wanted adoptme v2.0.0-beta1
Projects
None yet
Development

No branches or pull requests

5 participants