class_docstr: Wraps a query and uses a matcher that always gives a constant score
  to all matching documents. This is a useful optimization when you don't
  care about scores from a certain branch of the query tree because it is
  simply acting as a filter. See also the :class:`AndMaybe` query.
class_docstr_tok: ["Wraps","a","query","and","uses","a","matcher","that","always","gives","a","constant","score","to","all","matching","documents",".","This","is","a","useful","optimization","when","you","don't","care","about","scores","from","a","certain","branch","of","the","query","tree","because","it","is","simply","acting","as","a","filter",".","See","also","the",":","class",":","`","AndMaybe","`","query","."]
code: def __init__(self, child, score=1.0):
      WrappingQuery.__init__(self, child)
      self.score = score
  
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 ConstantScoreQuery object from inherited base classes: WrappingQuery with example: obj = ConstantScoreQuery(child, score)