

def replace(self, oldtext, newtext):
    return AndNot(self.positive.replace(oldtext, newtext), self.negative.replace(oldtext, newtext), boost=self.boost)

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py AndNot.replace/original