#NEWLINE# def doc_scores( self , searcher , weighting = None , exclude_docs = None ) : #NEWLINE# #INDENT# ( query , filterquery ) = self . subqueries #NEWLINE# filter = BitVector ( searcher . doc_count_all ( ) ) #NEWLINE# for docnum in filterquery . docs ( searcher , exclude_docs = exclude_docs ) : #NEWLINE# #INDENT# filter . set ( docnum ) #NEWLINE# #UNINDENT# for ( docnum , score ) in query . doc_scores ( docnum , weighting = weighting ) : #NEWLINE# #INDENT# if ( docnum not in filter ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( yield ( docnum , score ) )