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 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南