Switch templates based on search result type