# 请教大佬如何跨索引更新数据

**URL:** <https://discuss.elastic.co/t/topic/313851>\
**Category:** 中文提问与讨论\
**Tags:** docker, vega\
**Created:** [September 7, 2022, 7:05am UTC](https://discuss.elastic.co/t/topic/313851 "2022-09-07T07:05:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chihao9332](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chihao9332/32/110581_2.png) [@chihao9332](https://discuss.elastic.co/u/chihao9332)\
**Post date:** [September 7, 2022, 7:05am UTC](https://discuss.elastic.co/t/topic/313851/1 "2022-09-07T07:05:51Z")

</div>

```auto
问题描述：索引B中新增加了两个字段，现需要从索引A中获取这两个字段的值并赋值给B
详细情况：
               1.索引A中部分字段：pro_id, tran_id, app_id, type .......
               2.索引B中部分字段：app_id, type .......
               3. 现 索引B中新增 pro_id和tran_id字段，要求将存量数据与索引A中数据同步
               4. 即：当 满足 A.app_id=B.app_id 和 A.type=B.type 时，将A.pro_id、A.tran_id 赋值到索引B

```

---

<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:** [October 5, 2022, 7:06am UTC](https://discuss.elastic.co/t/topic/313851/2 "2022-10-05T07:06:33Z")

</div>

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