Version.number is not properly displayed in curl request

Hi,
I am using Opensearch 1.3.1 tar and when I curl to Opensearch endpoint, version.number is 7.10.2, instead it should have been Opensearch tar version which is 1.3.1.

{
"name" : "my-opensearch",
"cluster_name" : "test",
"cluster_uuid" : "N8-vFcQKQuiv6m8skLdkog",
"version" : {
"number" : "7.10.2",
"build_type" : "tar",
"build_hash" : "c4c0672877bf0f787ca857c7c37b775967f93d81",
"build_date" : "2022-03-29T18:34:46.566802Z",
"build_snapshot" : false,
"lucene_version" : "8.10.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}

Hi @chaitra ,

The only case when Opensearch will return 7.10.2 version instead of 1.3.1 (as in your deployment) is to preserve compatibility with Elasticsearch clients [1]. If you don’t need that, you could set override_main_response_version setting to false, for example:

PUT https://localhost:9200/_cluster/settings

{
  "persistent": {
    "compatibility": {
      "override_main_response_version": false
    }
  }
}

Please note after that, if you use some tooling from Elasticsearch ecosystem, it may stop connecting to your cluster(s). Thank you.

[1] Upgrade from Elasticsearch OSS to OpenSearch - OpenSearch documentation