Check the existing map before updating
GET http://localhost:9200/myIndex/myType/_mapping
PUT http://localhost:9200/myIndex/_mapping/myType
{
"properties": {
"newField": {
"type": "keyword"
}
}
}
- myIndex - index of ES
- myType - type of ES index
- newField - new field to be added to this index.