Refactored search to be able to show hits, links to resources, etc