Compactify search results