# How to do Lookup from one index to another index of elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to-do-lookup-from-one-index-to-another-index-of-elasticsearch/148066>\
**Category:** Elasticsearch\
**Created:** [September 11, 2018, 6:59am UTC](https://discuss.elastic.co/t/how-to-do-lookup-from-one-index-to-another-index-of-elasticsearch/148066 "2018-09-11T06:59:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yash\_mangla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yash_mangla/32/25889_2.png) [@yash\_mangla](https://discuss.elastic.co/u/yash_mangla)\
**Post date:** [September 11, 2018, 6:59am UTC](https://discuss.elastic.co/t/how-to-do-lookup-from-one-index-to-another-index-of-elasticsearch/148066/1 "2018-09-11T06:59:55Z")

</div>

Hi Guyz,

What is the best way to perform lookup from one elasticsearch index to another elasticsearch index using python script ? How we can do it ?

Basically, we have some set of values in a one elasticsearch index and we want to look in another index if those values exist in another index or not based on certain use cases scenario using python script.

I'm looking for some suggestion in this regards.

Thanks,  
Yash

---

<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:** [October 9, 2018, 6:59am UTC](https://discuss.elastic.co/t/how-to-do-lookup-from-one-index-to-another-index-of-elasticsearch/148066/2 "2018-10-09T06:59:59Z")

</div>

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