def METHOD_NAME(request, template_name="entities/search.html"):
    filters = Entity.get_search_filter(request.user)
    entities = Entity.objects.all()
    if filters:
        entities = entities.filter(filters).distinct()
    EventLog.objects.log()
    return render_to_resp(request=request, template_name=template_name,
        context={'entities':entities})