# Filter context in Elasticsearch

**URL:** <https://discuss.elastic.co/t/filter-context-in-elasticsearch/87212>\
**Category:** Elasticsearch\
**Created:** [May 26, 2017, 7:32am UTC](https://discuss.elastic.co/t/filter-context-in-elasticsearch/87212 "2017-05-26T07:32:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raj.shah1593](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@raj.shah1593](https://discuss.elastic.co/u/raj.shah1593)\
**Post date:** [May 26, 2017, 7:32am UTC](https://discuss.elastic.co/t/filter-context-in-elasticsearch/87212/1 "2017-05-26T07:32:56Z")

</div>

Hello,

I have been reading about query context & filter context.

From what I understood, the query context performs full-text search on the index.  
And the filter context, then applies filter checks on the results obtained from query context.

So, is it true or both filter context and query context perform independent searches and then AND results are obtained.

Thank you.

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [May 29, 2017, 3:35am UTC](https://discuss.elastic.co/t/filter-context-in-elasticsearch/87212/2 "2017-05-29T03:35:12Z")

</div>

Hello,

They are _not_ independent searches. There is only one search performed by the query context (with scoring) and the filter will be used to filter in documents (without scoring).

Cheers

---

<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:** [June 26, 2017, 3:35am UTC](https://discuss.elastic.co/t/filter-context-in-elasticsearch/87212/3 "2017-06-26T03:35:15Z")

</div>

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