sample solr config, add action to search form
[prawokultury.git] / doc / solr-conf / velocity / cluster.vm
diff --git a/doc/solr-conf/velocity/cluster.vm b/doc/solr-conf/velocity/cluster.vm
new file mode 100644 (file)
index 0000000..ab2f0e4
--- /dev/null
@@ -0,0 +1,9 @@
+<h2 #annTitle("Clusters generated by Carrot2 using the /clustering RequestHandler")>Clusters</h2>
+<div id="clusters">
+  Run Solr with java -Dsolr.clustering.enabled=true -jar start.jar to see results
+</div>
+<script type="text/javascript">
+
+  $('#clusters').load("#url_for_solr/clustering#lens",
+    {'wt':'velocity', 'v.template':"clusterResults"});
+</script>