X-Git-Url: http://git.indexdata.com/?p=lui-solr.git;a=blobdiff_plain;f=zookeeper%2Fsolr%2Fcollection1%2Fconf%2Fvelocity%2Fcluster_results.vm;fp=zookeeper%2Fsolr%2Fcollection1%2Fconf%2Fvelocity%2Fcluster_results.vm;h=204480d5de2c75ce855eafdea3c096d602fecf8a;hp=0000000000000000000000000000000000000000;hb=df39a9c5d2f4247b0682f2c6cf0d64b22edfaadd;hpb=8373b5d73c5a09872b07edb5c23b76a7f07fd055 diff --git a/zookeeper/solr/collection1/conf/velocity/cluster_results.vm b/zookeeper/solr/collection1/conf/velocity/cluster_results.vm new file mode 100644 index 0000000..204480d --- /dev/null +++ b/zookeeper/solr/collection1/conf/velocity/cluster_results.vm @@ -0,0 +1,31 @@ +#** + * Actual rendering of Clusters + *# + +## For each cluster +#foreach ($clusters in $response.response.clusters) + + #set($labels = $clusters.get('labels')) + #set($docs = $clusters.get('docs')) + + ## This Cluster's Heading +

+ #foreach ($label in $labels) + ## Keep the following line together to prevent + ## a space appearing before each comma + $label#if( $foreach.hasNext ),#end + #end +

+ + ## This Cluster's Documents +
    + ## For each doc in this cluster + #foreach ($cluDoc in $docs) +
  1. + + $cluDoc +
  2. + #end +
+ +#end ## end for each Cluster