Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/lui-solr
[lui-solr.git] / zookeeper / solr / collection1 / conf / velocity / cluster.vm
1 #**
2  *  Check if Clustering is Enabled and then
3  *  call cluster_results.vm
4  *#
5
6 <h2 #annTitle("Clusters generated by Carrot2 using the /clustering RequestHandler")>
7   Clusters
8 </h2>
9
10 ## Div tag has placeholder text by default
11 <div id="clusters">
12   Run Solr with java -Dsolr.clustering.enabled=true -jar start.jar to see results
13 </div>
14
15 ## Replace the div content *if* Carrot^2 is available
16 <script type="text/javascript">
17   $('#clusters').load("#url_for_solr/clustering#lens",
18     {'wt':'velocity', 'v.template':"cluster_results"});
19 </script>