You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2012/02/22 15:19:35 UTC

svn commit: r1292304 - in /lucene/dev/branches/branch_3x/solr: CHANGES.txt example/solr/conf/velocity/hitGrouped.vm

Author: janhoy
Date: Wed Feb 22 14:19:34 2012
New Revision: 1292304

URL: http://svn.apache.org/viewvc?rev=1292304&view=rev
Log:
SOLR-3009: hitGrouped.vm isn't shipped with 3.x

Added:
    lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/hitGrouped.vm   (with props)
Modified:
    lucene/dev/branches/branch_3x/solr/CHANGES.txt

Modified: lucene/dev/branches/branch_3x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/CHANGES.txt?rev=1292304&r1=1292303&r2=1292304&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_3x/solr/CHANGES.txt Wed Feb 22 14:19:34 2012
@@ -207,6 +207,8 @@ Bug Fixes
 * SOLR-2909: Add support for ResourceLoaderAware tokenizerFactories in synonym
   filter factories. (Tom Klonikowski, Jun Ohtani via Koji Sekiguchi)
 
+* SOLR-3009: hitGrouped.vm isn't shipped with 3.x (ehatcher, janhoy)
+
 Other Changes
 ----------------------
 * SOLR-2922: Upgrade commons-io and commons-lang to 2.1 and 2.6, respectively. (koji)

Added: lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/hitGrouped.vm
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/hitGrouped.vm?rev=1292304&view=auto
==============================================================================
--- lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/hitGrouped.vm (added)
+++ lucene/dev/branches/branch_3x/solr/example/solr/conf/velocity/hitGrouped.vm Wed Feb 22 14:19:34 2012
@@ -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>