

def docs(self, searcher, exclude_docs=None):
    'Returns an iterator of docnums matching this query.\n        \n        >>> searcher = my_index.searcher()\n        >>> list(my_query.docs(searcher))\n        [10, 34, 78, 103]\n        \n        :param searcher: A :class:`whoosh.searching.Searcher` object.\n        :param exclude_docs: A :class:`~whoosh.support.bitvector.BitVector`\n            of document numbers to exclude from the results, or None to not\n            exclude any documents.\n        '
    try:
        return exclude_docs.scorer(searcher).all_ids()
    except TermNotFound:
        return []

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py Query.docs/VarMisuse@23/188 `self`->`exclude_docs`