#NEWLINE# def _MatchFacetRefinement( self , doc , refinement ) : #NEWLINE# #INDENT# doc_facets = [ ] #NEWLINE# for facet in doc . document . facet_list ( ) : #NEWLINE# #INDENT# if ( facet . name ( ) == refinement . name ( ) ) : #NEWLINE# #INDENT# doc_facets . append ( facet ) #NEWLINE# #UNINDENT# #UNINDENT# return any ( ( self . _MatchSingleFacetRefinement ( doc_facet , refinement ) for doc_facet in doc_facets ) )