sample solr config, add action to search form
[prawokultury.git] / doc / solr-conf / velocity / clusterResults.vm
diff --git a/doc/solr-conf/velocity/clusterResults.vm b/doc/solr-conf/velocity/clusterResults.vm
new file mode 100644 (file)
index 0000000..db1774d
--- /dev/null
@@ -0,0 +1,12 @@
+#foreach ($clusters in $response.response.clusters)
+    #set($labels = $clusters.get('labels'))
+    #set($docs = $clusters.get('docs'))
+    <h3>#foreach ($label in $labels)$label#if( $foreach.hasNext ),#end#end</h3>
+        <ol>
+        #foreach ($cluDoc in $docs)
+          <li><a href="#url_for_home?q=id:$cluDoc">$cluDoc</a></li>
+        #end
+        </ol>
+        
+    
+#end
\ No newline at end of file