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
preguntada hace un año139 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas