# Fire multiple queries based on the values returned from the previous query elasticsearch

**URL:** <https://discuss.elastic.co/t/fire-multiple-queries-based-on-the-values-returned-from-the-previous-query-elasticsearch/109205>\
**Category:** Elasticsearch\
**Created:** [November 27, 2017, 11:16am UTC](https://discuss.elastic.co/t/fire-multiple-queries-based-on-the-values-returned-from-the-previous-query-elasticsearch/109205 "2017-11-27T11:16:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayushbij27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayushbij27/32/24314_2.png) [@ayushbij27](https://discuss.elastic.co/u/ayushbij27)\
**Post date:** [November 27, 2017, 11:16am UTC](https://discuss.elastic.co/t/fire-multiple-queries-based-on-the-values-returned-from-the-previous-query-elasticsearch/109205/1 "2017-11-27T11:16:24Z")

</div>

Hi All,  
I am trying a scenario where based on results from previous queries I should be able to fire multiple queries on same index simultaneously. So Suppose,based on the previous query if I got the results like 'A','B','C','D','E' from the first query next I want to get the data from different fields with term ='A',term='B',term='C',term='D and so on. Please help me on this.

Please let me know if further explaination is rquired  
Thanks

---

<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:** [December 25, 2017, 11:16am UTC](https://discuss.elastic.co/t/fire-multiple-queries-based-on-the-values-returned-from-the-previous-query-elasticsearch/109205/2 "2017-12-25T11:16:29Z")

</div>

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