Yay I figured it all out!
If anyone come across this post I had to the following request:
PUT /my_index/mappings/doc
{
"_all": {
"enabled": true
},
"properties": {
"@timestamp": {
"type": "date"
},
"@version": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"index": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"intent": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"message_content": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"message_type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"processing_time": {
"type": "long"
}
}
}
And then I did the following request to apply the mapping to my stored documents:
POST /my_index/_update_by_query?pretty&conflicts=proceed&refresh
Thanks a lot @weltenwort for your help!