'Narrows the search based on certain attributes and the default operator.'

def filter(self, *args, **kwargs):

    if (DEFAULT_OPERATOR == u'OR'):
        return self.filter_or(*args, **kwargs)
    else:
        return self.filter_and(*args, **kwargs)
