# Getting a query into filter context

**URL:** <https://discuss.elastic.co/t/getting-a-query-into-filter-context/33994>\
**Category:** Elasticsearch\
**Created:** [November 6, 2015, 1:56pm UTC](https://discuss.elastic.co/t/getting-a-query-into-filter-context/33994 "2015-11-06T13:56:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Brian\_Hudson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_hudson/32/1306_2.png) [@Brian\_Hudson](https://discuss.elastic.co/u/Brian_Hudson)\
**Post date:** [November 6, 2015, 3:28pm UTC](https://discuss.elastic.co/t/getting-a-query-into-filter-context/33994/3 "2015-11-06T15:28:09Z")

</div>

Great thanks.

Does a top level `boolQuery().filter(someBigCompoundQuery)` put all of the subqueries into filter context or do I need to put the sub-queries into filter context as well?

---

_[View the full topic](https://discuss.elastic.co/t/getting-a-query-into-filter-context/33994)._
