#foreach ($group in $grouping.value.groups)
$group.groupValue ($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