# Elasticsearch - matching between two index

**URL:** <https://discuss.elastic.co/t/elasticsearch-matching-between-two-index/59695>\
**Category:** Elasticsearch\
**Created:** [September 2, 2016, 5:53pm UTC](https://discuss.elastic.co/t/elasticsearch-matching-between-two-index/59695 "2016-09-02T17:53:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ketzler](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@ketzler](https://discuss.elastic.co/u/ketzler)\
**Post date:** [September 2, 2016, 5:53pm UTC](https://discuss.elastic.co/t/elasticsearch-matching-between-two-index/59695/1 "2016-09-02T17:53:49Z")

</div>

Hey,

I have a big problem. I have to match two databases with tracks in  
elasticsearch. So I uploaded them with logstash in two seperate index.  
How can I match one index against the second?  
So that I get for every record in the first index a result from the  
second index.  
Should I load the data in one single index?  
Is there something I overlooked?

Thank you in advanced!

Chris

---

<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:** [July 5, 2017, 10:22pm UTC](https://discuss.elastic.co/t/elasticsearch-matching-between-two-index/59695/2 "2017-07-05T22:22:45Z")

</div>


