How to append the nested fields in already created elasticsearch index using ES API

I tried to append the nested field using below syntax but showing some error. Can anyone please help me on this?

PUT url : es_index/_mappings

{
"properties": {
"assignee": {
"properties": {
"components": {
"properties": {
"description": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"self": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
}
}

Error:

HTTP Proxy Alert

Connection Error

Unable to connect to server

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.