Instead of (url-formatter search) you should have (funcall url-formatter search).
Lisp expects the name of a function as the first element of a list. If instead you have a symbol associated with a lambda expression or function name, you need to use funcall.