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 __init__(self, child, weighting):
      WrappingQuery.__init__(self, child)
      self.weighting = weighting
  
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 1 to create a new WeightingQuery object from inherited base classes: WrappingQuery with example: obj = WeightingQuery(child, weighting)