Get the major version of an index

Hello
I need to get the major version of an index.
So before I used indexName/_settings?human=true. And in the result I parsed the "created_string" from version. There I took the number before the fist dot.
Now with 8.12. "created_string" has the same content as "created". In 8.12. is it "8500010".

Is that intended? And if yes how can I parse the major version from that number. How is the "syntax" for that kind of version?

Thanks
Thomas

Hey there @staubt this is definitely a bug, thanks for reaching out about it!

The good news, is that we already have an open PR to resolve this, so this will be fixed in an upcoming version of Elasticsearch.

In the meantime, you can cross reference the data here as a workaround.

Hi Kathleen
Thanks for your answer. Until the PR is in I will simply read the first letter as fallback in case the string dosn't contain any dots.