I'm writing custom lucene query which is basically a wrapper around boolean query with many should clauses.
I want to access this boolean query's matched terms, and then either filter out this document depending on external statistics on those terms or proceed with this document without affecting it boolean score. What is the best way to achieve this?