Wired up a search endpoint