

def _not_vector(searcher, notqueries, sourcevector):
    if (sourcevector is None):
        nvector = BitVector(searcher.reader().doc_count_all())
    else:
        nvector = sourcevector.copy()
    for nquery in notqueries:
        nvector.set_from(nquery.docs(searcher))
    return nvector

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py _not_vector/original