class_docstr: Matches documents containing a given phrase.
docstr: :param fieldname: the field to search.
  :param words: a list of words (unicode strings) in the phrase.
  :param slop: the number of words allowed between each "word" in the
      phrase; the default of 1 means the phrase must match exactly.
  :param boost: a boost factor that to apply to the raw score of
      documents matched by this query.
  :param char_ranges: if a Phrase object is created by the query parser,
      it will set this attribute to a list of (startchar, endchar) pairs
      corresponding to the words in the phrase
docstr_tok: [":","param","fieldname",":","the","field","to","search",".",":","param","words",":","a","list","of","words","(","unicode","strings",")","in","the","phrase",".",":","param","slop",":","the","number","of","words","allowed","between","each","``","word","''","in","the","phrase",";","the","default","of","1","means","the","phrase","must","match","exactly",".",":","param","boost",":","a","boost","factor","that","to","apply","to","the","raw","score","of","documents","matched","by","this","query",".",":","param","char_ranges",":","if","a","Phrase","object","is","created","by","the","query","parser",",","it","will","set","this","attribute","to","a","list","of","(","startchar",",","endchar",")","pairs","corresponding","to","the","words","in","the","phrase"]
code: def __init__(
      self, fieldname, words, slop=1, boost=1.0, char_ranges=None
  ):
      """
      :param fieldname: the field to search.
      :param words: a list of words (unicode strings) in the phrase.
      :param slop: the number of words allowed between each "word" in the
          phrase; the default of 1 means the phrase must match exactly.
      :param boost: a boost factor that to apply to the raw score of
          documents matched by this query.
      :param char_ranges: if a Phrase object is created by the query parser,
          it will set this attribute to a list of (startchar, endchar) pairs
          corresponding to the words in the phrase
      """
  
      self.fieldname = fieldname
      self.words = words
      self.slop = slop
      self.boost = boost
      self.char_ranges = char_ranges
  
imports: from __future__ import division
  import copy
  from whoosh import matching
  from whoosh.analysis import Token
  from whoosh.compat import u
  from whoosh.query import qcore, terms, compound
label_desc: Use image node_id 1 to create a new Phrase object from inherited base classes: qcore with example: obj = Phrase(fieldname, words, slop, boost, char_ranges)