

def _existing_terms(self, ixreader, termset, reverse=False, phrases=True):
    fieldname = self.fieldname
    for word in self._words(ixreader):
        t = (fieldname, word)
        contains = (t in ixreader)
        if reverse:
            contains = (not contains)
        if contains:
            termset.add(t)

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