

def __init__(self, fieldname, text, boost=1.0):
    '\n        :param fieldname: The field to search in.\n        :param text: A glob to search for. May contain ? and/or * wildcard characters.\n            Note that matching a wildcard expression that starts with a wildcard\n            is very inefficent, since the query must test every term in the field.\n        :param boost: A boost factor that should be applied to the raw score of\n            results matched by this query.\n        '
    self.fieldname = fieldname
    self.text = text
    self.boost = boost
    text.expression = re.compile(fnmatch.translate(text))
    qm = text.find('?')
    st = text.find('*')
    if ((qm < 0) and (st < 0)):
        self.prefix = ''
    elif (qm < 0):
        self.prefix = text[:st]
    elif (st < 0):
        self.prefix = text[:qm]
    else:
        self.prefix = text[:min(st, qm)]

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py Wildcard.__init__/VarMisuse@38/198 `self`->`text`