# Dynamically update a target index after completion of indexing (When combining two indexes)

**URL:** <https://discuss.elastic.co/t/dynamically-update-a-target-index-after-completion-of-indexing-when-combining-two-indexes/259290>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [December 21, 2020, 4:52pm UTC](https://discuss.elastic.co/t/dynamically-update-a-target-index-after-completion-of-indexing-when-combining-two-indexes/259290 "2020-12-21T16:52:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfar](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Alfar](https://discuss.elastic.co/u/Alfar)\
**Post date:** [December 21, 2020, 4:52pm UTC](https://discuss.elastic.co/t/dynamically-update-a-target-index-after-completion-of-indexing-when-combining-two-indexes/259290/1 "2020-12-21T16:52:11Z")

</div>

Hi,  
I have used enrich index (addresses) to ingest to incoming documents(customers) in order to combine both indexes(customers and addresses). The indexes have fields as below  
Customers : name, age, email, address\_id  
Addresses : address\_id,city

as the result of ingest pipeline(with enrich policy) I could get an index "customer\_address" which has name,age,email,address\_id,city with every records perfectly. My problem is, I can not update customer\_address index(target index) dynamically whenever I update customers index after completion of indexing. Thankful if someone suggest me to do it?

---

<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:** [January 18, 2021, 4:52pm UTC](https://discuss.elastic.co/t/dynamically-update-a-target-index-after-completion-of-indexing-when-combining-two-indexes/259290/2 "2021-01-18T16:52:17Z")

</div>

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