

def doc_scores(self, searcher, exclude_docs=None):
    "Returns an iterator of (docnum, score) pairs matching this query.\n        This is a convenience method for when you don't need a QueryScorer\n        (i.e. you don't need to use skip_to).\n        \n        >>> list(my_query.doc_scores(ixreader))\n        [(10, 0.73), (34, 2.54), (78, 0.05), (103, 12.84)]\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        "
    return iter(self.scorer(searcher, exclude_docs=exclude_docs))

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py Query.doc_scores/original