

def _words(self, ixreader):
    fieldnum = ixreader.fieldname_to_num(self.fieldname)
    start = self.start
    end = self.end
    startexcl = self.startexcl
    endexcl = self.endexcl
    for (fnum, t, _, _) in ixreader.iter_from(fieldnum, self.start):
        if (fnum != fieldnum):
            break
        if ((t == start) and startexcl):
            continue
        if ((t == end) and endexcl):
            break
        if (t > end):
            break
        (yield t)

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