HookedSearch abstraction using lambda functions