# How to save One index field into another index?

**URL:** <https://discuss.elastic.co/t/how-to-save-one-index-field-into-another-index/287399>\
**Category:** Elasticsearch\
**Created:** [October 22, 2021, 5:59am UTC](https://discuss.elastic.co/t/how-to-save-one-index-field-into-another-index/287399 "2021-10-22T05:59:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![padamrai](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@padamrai](https://discuss.elastic.co/u/padamrai)\
**Post date:** [October 22, 2021, 5:59am UTC](https://discuss.elastic.co/t/how-to-save-one-index-field-into-another-index/287399/1 "2021-10-22T05:59:57Z")

</div>

I want to save SMS data in another field because I am getting the same SMS three times that's why to avoid duplication I used document\_id that is overriding the old with a new one but problem is that I am getting SMS data in the first message after that I am getting empty field. SMS data is overridden by an empty field. So I want to save SMS data in the new index before overriding it.

How I can achieve this?

Thanks.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 25, 2021, 3:54am UTC](https://discuss.elastic.co/t/how-to-save-one-index-field-into-another-index/287399/2 "2021-10-25T03:54:14Z")

</div>

You need to handle that outside Elasticsearch, there's nothing native that will do that for you sorry to say.

---

<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 22, 2021, 3:54am UTC](https://discuss.elastic.co/t/how-to-save-one-index-field-into-another-index/287399/3 "2021-11-22T03:54:47Z")

</div>

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