#NEWLINE# def docs( self , searcher , exclude_docs = None ) : #NEWLINE# #INDENT# "\n        Runs this query on the index represented by 'searcher'.\n        Yields a sequence of docnums. The base method simply forwards to\n        doc_scores() and throws away the scores, but if possible specific\n        implementations should use a more efficient method to avoid scoring\n        the hits.\n        \n        exclude_docs is a BitVector of documents to exclude from the results.\n        " #NEWLINE# return ( docnum for ( docnum , _ ) in self . doc_scores ( searcher , exclude_docs = exclude_docs ) )