Also a little higher.
[prawokultury.git] / doc / solr-conf / velocity / hitGrouped.vm
1 <div class="result-document">
2   <div class="result-title"><b>$grouping.key</b></div>
3   <div>Total Matches in Group: $grouping.value.matches</div>
4   <div>#foreach ($group in $grouping.value.groups)
5     <div class="group-value">$group.groupValue <span #annTitle("The count of the number of documents in this group")>($group.doclist.numFound)</span></div>
6     <div class="group-doclist" #annTitle("Contains the top scoring documents in the group")>
7       #foreach ($doc in $group.doclist)
8         #set($docId = $doc.getFieldValue('id'))
9         #if($doc.getFieldValue('name'))
10           #parse("product-doc.vm")
11         #elseif($doc.getFieldValue('compName_s'))
12           #parse("join-doc.vm")
13         #else
14           #parse("richtext-doc.vm")
15         #end
16       #end
17     </div>
18     #end</div>
19   </div>
20   #if($params.getBool("debugQuery",false))
21     <a href="#" onclick='jQuery(this).siblings("pre").toggle(); return false;'>toggle explain</a>
22     <pre style="display:none">$response.getExplainMap().get($doc.getFirstValue('id'))</pre>
23   #end
24 </div>