# How to add first index fields in second index, if one field is common in both

**URL:** https://discuss.elastic.co/t/how-to-add-first-index-fields-in-second-index-if-one-field-is-common-in-both/196287
**Category:** Elasticsearch
**Created:** [August 22, 2019, 9:44am UTC](https://discuss.elastic.co/t/how-to-add-first-index-fields-in-second-index-if-one-field-is-common-in-both/196287 "2019-08-22T09:44:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sajal](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Sajal](https://discuss.elastic.co/u/Sajal)
#### Post date: [August 22, 2019, 9:44am UTC](https://discuss.elastic.co/t/how-to-add-first-index-fields-in-second-index-if-one-field-is-common-in-both/196287/1 "2019-08-22T09:44:02Z")

</div>

Hi

There are two indexes and i want to add first all index fields in second index if it matches one common field (eg . If both index has common username then add first index fields in second index ). Is it possible in Elastic search ?

BR//  
Sajal

---

<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: [September 19, 2019, 9:44am UTC](https://discuss.elastic.co/t/how-to-add-first-index-fields-in-second-index-if-one-field-is-common-in-both/196287/2 "2019-09-19T09:44:11Z")

</div>

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