Filtering based on initial query

I want to have an ability to write a single query. There will be a clause which will fetch some documents, and in same query i can filter using another clauses on the already fetched documents.

Something similar to what rescoring does. But not rescoring, just an extra filter. Problem i see with rescoring is even if the rescoring query does not match to the clauses inside it, it still gives results.

Any options ?
Does post_filter do the same ?

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