## list of groups
#foreach ($group in $grouping.value.groups)
#if($group.groupValue)$group.groupValue#{else}No group#end
($group.doclist.numFound)
#foreach ($doc in $group.doclist)
#set($docId = $doc.getFieldValue('id'))
#if($doc.getFieldValue('name'))
#parse("product_doc.vm")
#elseif($doc.getFieldValue('compName_s'))
#parse("join_doc.vm")
#else
#parse("richtext_doc.vm")
#end
#end
#end ## end of foreach group in grouping.value.groups