

def iter_prefix(self, fieldid, prefix):
    'Yields (field_num, text, doc_freq, index_freq) tuples\n        for all terms in the given field with a certain prefix.\n        '
    fieldid = self.schema.to_number(fieldid)
    for (fn, t, docfreq, colfreq) in self.iter_from(fieldid, prefix):
        if ((fn != fieldid) or (not t.startswith(prefix))):
            return
        (yield (t, docfreq, colfreq))

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/reading.py IndexReader.iter_prefix/original