Last change
on this file since 29135 was 29135, checked in by ak19, 10 years ago |
Part of port from lucene3.3.0 to lucene4.7.2. Solr related. conf and lib folders for solr4.7.2.
|
File size:
666 bytes
|
Line | |
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.