OpenSearch modify or create new index?

0

Hello, I have index01 that is created by streaming data. The incoming date field is in milliseconds since the epoch but not being interpreted as a date-time field by OpenSearch. I would like to re-create the entire index (or maybe I can re-create a portion of the index and "Join" with the original index?) and in the process format the date-time to epoch_millis.

I found the below snippet of code which I think I need to use but I have no idea how I would use below to create index02 from index01?

PUT my-index-02
{
  "mappings": {
    "properties": {
      "date": {
        "type":   "date",
        "format": "epoch_millis"
      }
    }
  }
}
AWS
已提问 1 年前139 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容