class_docstr: Wraps a query and uses a specific :class:`whoosh.sorting.WeightingModel`
  to score documents that match the wrapped query.
class_docstr_tok: ["Wraps","a","query","and","uses","a","specific",":","class",":","`","whoosh.sorting.WeightingModel","`","to","score","documents","that","match","the","wrapped","query","."]
code: def matcher(self, searcher, context=None):
      # Replace the passed-in weighting with the one configured on this query
      context.set(weighting=self.weighting)
      return self.child.matcher(searcher, context)
  
imports: from __future__ import division
  from array import array
  from whoosh import matching
  from whoosh.compat import text_type, u
  from whoosh.query import qcore
label_desc: Use image node_id 2 for calling the WeightingQuery obj's underlying member method code with example usage: obj.matcher(searcher, context) and returns: self