

def _words(self, ixreader):
    if self.prefix:
        candidates = ixreader.expand_prefix(self.fieldname, self.prefix)
    else:
        candidates = ixreader.lexicon(self.fieldname)
    exp = self.expression
    for text in candidates:
        if exp.match(text):
            (yield text)

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py Wildcard._words/original