Change creation_date after migration

Hi,

i migrated from elasticsearch 7.12.X to Opensearch 2.9 with the reindex API.
Now all migrated indices have the creation_date of the migration and not the origin date from elasticsearch.

{
    "settings": {
        "index": {
            "creation_date": "1691568102890",
        }
    }
}

Is there a way to change the creation_date?
I must apply the migrated indices to ISM, but with the wrong creation_date, it’s not possible :frowning:

Updating the creation_date is not possible:

PUT test123/_settings
{
  "index": {
      "creation_date": "1691567422333"
  }
}

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "unknown setting [index.creation_date] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "unknown setting [index.creation_date] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
  },
  "status": 400
}

Thanks for help!

@dbgtmaster Have you tried painless scripting with reindex API?

With painless, i only can change documents, but not index settings.
Or is there another way?

@dbgtmaster Sorry, I’ve just noticed you’re referring to an index setting and not a field.
In that case, I don’t think it is possible to force a specific value in the creation_date setting.