#NEWLINE# def has( self , * words ) : #NEWLINE# #INDENT# 'return True if any of the words is present int the query' #NEWLINE# for word in words : #NEWLINE# #INDENT# if re . search ( '\\b{0}\\b' . format ( words ) , self . query ) : #NEWLINE# #INDENT# return True