# Using results of one query in another over multiple indices

**URL:** <https://discuss.elastic.co/t/using-results-of-one-query-in-another-over-multiple-indices/122002>\
**Category:** Elasticsearch\
**Created:** [March 1, 2018, 8:51am UTC](https://discuss.elastic.co/t/using-results-of-one-query-in-another-over-multiple-indices/122002 "2018-03-01T08:51:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartik\_jain](https://avatars.discourse-cdn.com/v4/letter/k/48db29/32.png) [@kartik\_jain](https://discuss.elastic.co/u/kartik_jain)\
**Post date:** [March 1, 2018, 8:51am UTC](https://discuss.elastic.co/t/using-results-of-one-query-in-another-over-multiple-indices/122002/1 "2018-03-01T08:51:36Z")

</div>

I want to send a query to my 1st index and then use the results of this query over the the 2nd index. I looked into pipeline aggregations but it works only on a single index. So is there any way i could achieve this?

---

<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:** [March 29, 2018, 8:51am UTC](https://discuss.elastic.co/t/using-results-of-one-query-in-another-over-multiple-indices/122002/2 "2018-03-29T08:51:55Z")

</div>

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