cluster.vm 568 B

12345678910111213141516171819
  1. #**
  2. * Check if Clustering is Enabled and then
  3. * call cluster_results.vm
  4. *#
  5. <h2 #annTitle("Clusters generated by Carrot2 using the /clustering RequestHandler")>
  6. Clusters
  7. </h2>
  8. ## Div tag has placeholder text by default
  9. <div id="clusters">
  10. Run Solr with option -Dsolr.clustering.enabled=true to see clustered search results.
  11. </div>
  12. ## Replace the div content *if* Carrot^2 is available
  13. <script type="text/javascript">
  14. $('#clusters').load("#url_for_solr/clustering#lens",
  15. {'wt':'velocity', 'v.template':"cluster_results"});
  16. </script>