# Update Nested field

**URL:** https://discuss.elastic.co/t/update-nested-field/152078
**Category:** Elasticsearch
**Created:** [October 11, 2018, 2:53pm UTC](https://discuss.elastic.co/t/update-nested-field/152078 "2018-10-11T14:53:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Andreas\_Bakopoulos](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Andreas\_Bakopoulos](https://discuss.elastic.co/u/Andreas_Bakopoulos)
#### Post date: [October 11, 2018, 2:53pm UTC](https://discuss.elastic.co/t/update-nested-field/152078/1 "2018-10-11T14:53:41Z")

</div>

Hello,

I need to update all documents where a nested field of them has a certain value.

The structure of the nested filed is the following:

"categories": {  
"type": "nested",  
"properties": {  
"description": {  
"type": "text"  
},  
"displayName": {  
"type": "text"  
},  
"id": {  
"type": "keyword"  
}  
}  
}

For example, how can I update the displayName of the category with id 1?

Thank you

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 8, 2018, 2:53pm UTC](https://discuss.elastic.co/t/update-nested-field/152078/2 "2018-11-08T14:53:45Z")

</div>

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