aboutsummaryrefslogtreecommitdiffstats
path: root/isuifang_solr/solr/conf/velocity/hitGrouped.vm
blob: c3cccf4b3b03cf55b336cc5f3d04b2844b7e6c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="result-document">
  <div class="result-title"><b>$grouping.key</b></div>
  <div>Total Matches in Group: $grouping.value.matches</div>
  <div>#foreach ($group in $grouping.value.groups)
    <div class="group-value">$group.groupValue <span #annTitle("The count of the number of documents in this group")>($group.doclist.numFound)</span></div>
    <div class="group-doclist" #annTitle("Contains the top scoring documents in the group")>
      #foreach ($doc in $group.doclist)
        #set($docId = $doc.getFieldValue('id'))
        #parse("doc.vm")
      #end
    </div>
    #end</div>
  </div>
  #if($params.getBool("debugQuery",false))
    <a href="#" onclick='jQuery(this).siblings("pre").toggle(); return false;'>toggle explain</a>
    <pre style="display:none">$response.getExplainMap().get($doc.getFirstValue('id'))</pre>
  #end
</div>