By placing this code to your themes template.php file, you get search results grouped by node/content type.
Source code viewer
function HOOK_preprocess_search_results(&$variables) { $variables['search_results'] = ''; // Divide results foreach ($variables['results'] as $result) { $resultTypes[$result['type']][] = $result; } // Create fieldsets foreach ($resultTypes as $resultType => $resultTypeResults) { $value = ''; foreach ($resultTypeResults as $result) { } } }Programming Language: PHP