Zookeeper setup
[lui-solr.git] / zookeeper / solr / collection1 / conf / velocity / cluster_results.vm
1 #**
2  *  Actual rendering of Clusters
3  *#
4
5 ## For each cluster
6 #foreach ($clusters in $response.response.clusters)
7
8   #set($labels = $clusters.get('labels'))
9   #set($docs = $clusters.get('docs'))
10
11   ## This Cluster's Heading
12   <h3>
13     #foreach ($label in $labels)
14       ## Keep the following line together to prevent
15       ## a space appearing before each comma
16       $label#if( $foreach.hasNext ),#end
17     #end
18   </h3>
19
20   ## This Cluster's Documents
21   <ol>
22     ## For each doc in this cluster
23     #foreach ($cluDoc in $docs)
24       <li>
25         <a href="#url_for_home?q=id:$cluDoc">
26           $cluDoc</a>
27       </li>
28     #end
29   </ol>
30
31 #end   ## end for each Cluster