diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-08-13 14:42:32 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-08-13 14:42:32 +0800 |
commit | 755463eed74ed7de9a3c1a12495d2dad655d31d5 (patch) | |
tree | f2a77a7a95cd5135ef7b253aa765652ba8323a90 /isuifang_solr/solr/conf/velocity/hitGrouped.vm | |
parent | 9636d4a6767f49384d5c386bc3f1142c88b90613 (diff) | |
download | 97dev-755463eed74ed7de9a3c1a12495d2dad655d31d5.tar.bz2 |
added 'isuifang_solr'
Diffstat (limited to 'isuifang_solr/solr/conf/velocity/hitGrouped.vm')
-rw-r--r-- | isuifang_solr/solr/conf/velocity/hitGrouped.vm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/isuifang_solr/solr/conf/velocity/hitGrouped.vm b/isuifang_solr/solr/conf/velocity/hitGrouped.vm new file mode 100644 index 0000000..c3cccf4 --- /dev/null +++ b/isuifang_solr/solr/conf/velocity/hitGrouped.vm @@ -0,0 +1,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> |