source: gs3-extensions/solr/trunk/src/conf/velocity/hit_grouped.vm@ 29135

Last change on this file since 29135 was 29135, checked in by ak19, 10 years ago

Part of port from lucene3.3.0 to lucene4.7.2. Solr related. conf and lib folders for solr4.7.2.

File size: 1.1 KB
Line 
1#**
2 * Display grouped results
3 *#
4
5<div class="result-document">
6
7 <div class="result-title">
8 <b>$grouping.key</b>
9 </div>
10
11 <div>
12 Total Matches in Group: $grouping.value.matches
13 </div>
14
15 <div> ## list of groups
16
17 #foreach ($group in $grouping.value.groups)
18 <div class="group-value">
19 #if($group.groupValue)$group.groupValue#{else}<i>No group</i>#end
20 <span #annTitle("The count of the number of documents in this group")>
21 ($group.doclist.numFound)
22 </span>
23 </div>
24
25 <div class="group-doclist"
26 #annTitle("Contains the top scoring documents in the group")
27 >
28 #foreach ($doc in $group.doclist)
29 #set($docId = $doc.getFieldValue('id'))
30 #if($doc.getFieldValue('name'))
31 #parse("product_doc.vm")
32 #elseif($doc.getFieldValue('compName_s'))
33 #parse("join_doc.vm")
34 #else
35 #parse("richtext_doc.vm")
36 #end
37 #end
38 </div>
39
40 #end ## end of foreach group in grouping.value.groups
41 </div> ## div tag for entire list of groups
42
43</div> ## end of div class=result-document
Note: See TracBrowser for help on using the repository browser.