# Copy a value from 'parent' to all nested objects

**URL:** <https://discuss.elastic.co/t/copy-a-value-from-parent-to-all-nested-objects/95087>\
**Category:** Elasticsearch\
**Created:** [July 30, 2017, 6:43pm UTC](https://discuss.elastic.co/t/copy-a-value-from-parent-to-all-nested-objects/95087 "2017-07-30T18:43:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulieMac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pauliemac/32/19480_2.png) [@PaulieMac](https://discuss.elastic.co/u/PaulieMac)\
**Post date:** [July 30, 2017, 6:43pm UTC](https://discuss.elastic.co/t/copy-a-value-from-parent-to-all-nested-objects/95087/1 "2017-07-30T18:43:11Z")

</div>

Hi all,

I have an index with a type mapped with nested objects... In order to tune up a query, I'd like to copy a value from each document to all of its nested 'children'... Anyone know a way of doing so?

Thanks,

Paul

---

<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:** [August 27, 2017, 6:43pm UTC](https://discuss.elastic.co/t/copy-a-value-from-parent-to-all-nested-objects/95087/2 "2017-08-27T18:43:41Z")

</div>

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