refactors Discourse.SearchController