2 * Actual rendering of Clusters
6 #foreach ($clusters in $response.response.clusters)
8 #set($labels = $clusters.get('labels'))
9 #set($docs = $clusters.get('docs'))
11 ## This Cluster's Heading
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
20 ## This Cluster's Documents
22 ## For each doc in this cluster
23 #foreach ($cluDoc in $docs)
25 <a href="#url_for_home?q=id:$cluDoc">
31 #end ## end for each Cluster