# Is there any way to use the search result from one index to search on another index?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-use-the-search-result-from-one-index-to-search-on-another-index/313131>\
**Category:** Elasticsearch\
**Created:** [August 29, 2022, 8:23am UTC](https://discuss.elastic.co/t/is-there-any-way-to-use-the-search-result-from-one-index-to-search-on-another-index/313131 "2022-08-29T08:23:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shi](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@shi](https://discuss.elastic.co/u/shi)\
**Post date:** [August 29, 2022, 8:23am UTC](https://discuss.elastic.co/t/is-there-any-way-to-use-the-search-result-from-one-index-to-search-on-another-index/313131/1 "2022-08-29T08:23:21Z")

</div>

I wanted to search for some data on the first index.  
Then I need to find the unique values of a specific field in the above search result, and search for the them in the second index.  
The names of the indices are different.  
How can I do this?

Thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 29, 2022, 9:04am UTC](https://discuss.elastic.co/t/is-there-any-way-to-use-the-search-result-from-one-index-to-search-on-another-index/313131/2 "2022-08-29T09:04:42Z")

</div>

You need to issue two separate requests. It is not possible to do tjis in a single query.

---

<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:** [September 26, 2022, 9:05am UTC](https://discuss.elastic.co/t/is-there-any-way-to-use-the-search-result-from-one-index-to-search-on-another-index/313131/3 "2022-09-26T09:05:09Z")

</div>

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