def search_connect(map, name, controller=None):
    """Create a SEARCH mapping for the input ``name``/``controller``.
    
    E.g., ``map = search_connect(map, 'forms')`` causes ``SEARCH /forms`` to
    route to :func:`FormsController.search`, etc.

    """
    controller = controller or name
    map.connect(name, '/%s' % name, controller=controller,
                action='search', conditions=dict(method='SEARCH'))
    map.connect('/%s/search' % name, controller=controller,
                action='search', conditions=dict(method='POST'))
    map.connect('/%s/new_search' % name, controller=controller,
                action='new_search', conditions=dict(method='GET'))
    return map