(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
: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
: 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
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
def __init__ ( self , fieldname , words , slop = 1 , boost = 1.0 , char_ranges = None ) : self . fieldname = fieldname self . words = words self . slop = slop self . boost = boost self . char_ranges = char_ranges