# Create new index as join of two indices on specific field

**URL:** <https://discuss.elastic.co/t/create-new-index-as-join-of-two-indices-on-specific-field/170978>\
**Category:** Elasticsearch\
**Created:** [March 5, 2019, 7:20pm UTC](https://discuss.elastic.co/t/create-new-index-as-join-of-two-indices-on-specific-field/170978 "2019-03-05T19:20:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lprokein](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lprokein/32/41604_2.png) [@lprokein](https://discuss.elastic.co/u/lprokein)\
**Post date:** [March 5, 2019, 7:20pm UTC](https://discuss.elastic.co/t/create-new-index-as-join-of-two-indices-on-specific-field/170978/1 "2019-03-05T19:20:38Z")

</div>

I have an index `Orders` with `username` field. But now I have new separate index `Users` where I now have more info about user than I was previously saving in `Orders` index.

How can I reindex `Orders` index to contain these new fields about user from `Users` index? Basically I need to JOIN `Orders` index with `Users` index based on `username` field. Is it possible to do something like that?

---

<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:** [April 2, 2019, 7:20pm UTC](https://discuss.elastic.co/t/create-new-index-as-join-of-two-indices-on-specific-field/170978/2 "2019-04-02T19:20:38Z")

</div>

Closed on April 2, 2019, 7:20pm UTC

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