

def estimate_size(self, ixreader):
    fieldnum = ixreader.fieldname_to_num(self.fieldname)
    return sum((ixreader.doc_frequency(fieldnum, text) for text in self._words(ixreader)))

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py MultiTerm.estimate_size/original