# Feeding a query results to another one

**URL:** <https://discuss.elastic.co/t/feeding-a-query-results-to-another-one/143930>\
**Category:** Elasticsearch\
**Created:** [August 10, 2018, 8:17pm UTC](https://discuss.elastic.co/t/feeding-a-query-results-to-another-one/143930 "2018-08-10T20:17:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masoumeh\_Shavikloo](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Masoumeh\_Shavikloo](https://discuss.elastic.co/u/Masoumeh_Shavikloo)\
**Post date:** [August 10, 2018, 8:17pm UTC](https://discuss.elastic.co/t/feeding-a-query-results-to-another-one/143930/1 "2018-08-10T20:17:29Z")

</div>

I want to know, is there any way to feed results of a query to another one? I want to use **stop token filter** in the first query and then feed the results to the second query without **stop token filter**. In this case, fewer documents will be searched. Please support with an example. Thanks.

---

<div class="post-metadata">

**Author:** ![Masoumeh\_Shavikloo](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Masoumeh\_Shavikloo](https://discuss.elastic.co/u/Masoumeh_Shavikloo)\
**Post date:** [August 11, 2018, 7:53pm UTC](https://discuss.elastic.co/t/feeding-a-query-results-to-another-one/143930/2 "2018-08-11T19:53:02Z")

</div>

Any idea would be appreciated. Thanks a lot.

---

<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 8, 2018, 7:53pm UTC](https://discuss.elastic.co/t/feeding-a-query-results-to-another-one/143930/3 "2018-09-08T19:53:02Z")

</div>

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