# How to compare 2 value from 2 indexes

**URL:** https://discuss.elastic.co/t/how-to-compare-2-value-from-2-indexes/58504
**Category:** Elasticsearch
**Created:** [August 20, 2016, 8:46am UTC](https://discuss.elastic.co/t/how-to-compare-2-value-from-2-indexes/58504 "2016-08-20T08:46:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hatienkma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hatienkma/32/11066_2.png) [@hatienkma](https://discuss.elastic.co/u/hatienkma)
#### Post date: [August 20, 2016, 8:46am UTC](https://discuss.elastic.co/t/how-to-compare-2-value-from-2-indexes/58504/1 "2016-08-20T08:46:03Z")

</div>

Hi all,

I have a problem with Elasticsearch.

I want to show all info from 2 documents if:  
Indexes1.ip\_dst = Indexes2.ip\_dst

Any way to fast? Any avaiable plugin?

Thanks.

---

<div class="post-metadata">

### Author: ![hatienkma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hatienkma/32/11066_2.png) [@hatienkma](https://discuss.elastic.co/u/hatienkma)
#### Post date: [August 20, 2016, 8:53am UTC](https://discuss.elastic.co/t/how-to-compare-2-value-from-2-indexes/58504/2 "2016-08-20T08:53:32Z")

</div>

If i use php but very slow when i compare 10k documents.

---

<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:26pm UTC](https://discuss.elastic.co/t/how-to-compare-2-value-from-2-indexes/58504/3 "2017-07-05T22:26:27Z")

</div>


