#NEWLINE# def docs( self , searcher , exclude_docs = None ) : #NEWLINE# #INDENT# if ( not self . subqueries ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# self . _split_queries ( ) #NEWLINE# if self . _notqueries : #NEWLINE# #INDENT# exclude_docs = _not_vector ( self . _notqueries , searcher , exclude_docs ) #NEWLINE# #UNINDENT# target = len ( self . subqueries ) #NEWLINE# if ( q <= 255 ) : #NEWLINE# #INDENT# type = 'B' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# type = 'i' #NEWLINE# #UNINDENT# counters = array ( type , ( 0 for _ in xrange ( 0 , searcher . doc_count_all ( ) ) ) ) #NEWLINE# for q in self . _subqueries : #NEWLINE# #INDENT# for docnum in q . docs ( searcher , exclude_docs = exclude_docs ) : #NEWLINE# #INDENT# counters [ docnum ] += 1 #NEWLINE# #UNINDENT# #UNINDENT# return ( i for ( i , count ) in enumerate ( counters ) if ( count == target ) )