# Dynamically append field from an index to same field in other indices

**URL:** <https://discuss.elastic.co/t/dynamically-append-field-from-an-index-to-same-field-in-other-indices/274579>\
**Category:** Elasticsearch\
**Created:** [June 1, 2021, 5:51am UTC](https://discuss.elastic.co/t/dynamically-append-field-from-an-index-to-same-field-in-other-indices/274579 "2021-06-01T05:51:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoolCommando\_Sniper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coolcommando_sniper/32/78785_2.png) [@CoolCommando\_Sniper](https://discuss.elastic.co/u/CoolCommando_Sniper)\
**Post date:** [June 1, 2021, 5:51am UTC](https://discuss.elastic.co/t/dynamically-append-field-from-an-index-to-same-field-in-other-indices/274579/1 "2021-06-01T05:51:10Z")

</div>

Hi,

I would like to achieve the following:  
Lets say there are 3 indices A, B & C, each having a document with \_id '1'.

I would like to append value of a field in A to the same field in indices B & C, where document \_id is 1 for all.

Similarly, this has to be done for all documents that match a criteria- append a field's value from A to the same field in other indices with matching document \_ids.

What's the best way to achieve this?

Thanks!

---

<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:** [June 29, 2021, 5:51am UTC](https://discuss.elastic.co/t/dynamically-append-field-from-an-index-to-same-field-in-other-indices/274579/2 "2021-06-29T05:51:56Z")

</div>

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