switch to templating when generating search results