Filter context in Elasticsearch


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.


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).


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