(self, fieldname, text, boost=1.0, maxdist=1,
                 prefixlength=1, constantscore=True)
:param fieldname: The name of the field to search.
        :param text: The text to search for.
        :param boost: A boost factor to apply to scores of documents matching
            this query.
        :param maxdist: The maximum edit distance from the given text.
        :param prefixlength: The matched terms must share this many initial
            characters with 'text'. For example, if text is "light" and
            prefixlength is 2, then only terms starting with "li" are checked
            for similarity.
:param fieldname: The name of the field to search.
        :param text: The text to search for.
        :param boost: A boost factor to apply to scores of documents matching
            this query.
        :param maxdist: The maximum edit distance from the given text.
        :param prefixlength: The matched terms must share this many initial
            characters with 'text'. For example, if text is "light" and
            prefixlength is 2, then only terms starting with "li" are checked
            for similarity.
: param fieldname : The name of the field to search . : param text : The text to search for . : param boost : A boost factor to apply to scores of documents matching this query . : param maxdist : The maximum edit distance from the given text . : param prefixlength : The matched terms must share this many initial characters with text . For example if text is light and prefixlength is 2 then only terms starting with li are checked for similarity .
def __init__(self, fieldname, text, boost=1.0, maxdist=1,
                 prefixlength=1, constantscore=True):
        """
        :param fieldname: The name of the field to search.
        :param text: The text to search for.
        :param boost: A boost factor to apply to scores of documents matching
            this query.
        :param maxdist: The maximum edit distance from the given text.
        :param prefixlength: The matched terms must share this many initial
            characters with 'text'. For example, if text is "light" and
            prefixlength is 2, then only terms starting with "li" are checked
            for similarity.
        """

        self.fieldname = fieldname
        self.text = text
        self.boost = boost
        self.maxdist = maxdist
        self.prefixlength = prefixlength
        self.constantscore = constantscore
def __init__ ( self , fieldname , text , boost = 1.0 , maxdist = 1 , prefixlength = 1 , constantscore = True ) : self . fieldname = fieldname self . text = text self . boost = boost self . maxdist = maxdist self . prefixlength = prefixlength self . constantscore = constantscore