# Getting data from two index

**URL:** <https://discuss.elastic.co/t/getting-data-from-two-index/122857>\
**Category:** Elasticsearch\
**Created:** [March 7, 2018, 10:03am UTC](https://discuss.elastic.co/t/getting-data-from-two-index/122857 "2018-03-07T10:03:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francisco1](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@Francisco1](https://discuss.elastic.co/u/Francisco1)\
**Post date:** [March 7, 2018, 10:03am UTC](https://discuss.elastic.co/t/getting-data-from-two-index/122857/1 "2018-03-07T10:03:02Z")

</div>

Hey guys,  
From my latest post here, I changed my approach and now I'm stuck in the following:

I'm trying to implement a mecanism like a JOIN, I've been reading that's not possible at all but worth the try.

I wanna a mecanism to 'link' two index so that I will be able to get fields from both index and present (or create a third one). Has anyone here did this? Hope you guys can give me a hand, I really wish to automate this mecanism instead of putting the fields when I inject the data in Elastic.

Thanks in advance,

Cheers!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 7, 2018, 8:34pm UTC](https://discuss.elastic.co/t/getting-data-from-two-index/122857/2 "2018-03-07T20:34:56Z")

</div>

Best thing to do is to solve the problem at index time IMHO.  
But I don't understand exactly the real use case.

Would be better to share an example of the data you have and what kind of queries you want to run.

---

<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 4, 2018, 8:35pm UTC](https://discuss.elastic.co/t/getting-data-from-two-index/122857/3 "2018-04-04T20:35:02Z")

</div>

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