You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by eh...@apache.org on 2010/04/05 19:56:18 UTC

svn commit: r930923 - in /lucene/dev/trunk/solr/example/solr/conf: solrconfig.xml velocity/ velocity/VM_global_library.vm

Author: ehatcher
Date: Mon Apr  5 17:56:18 2010
New Revision: 930923

URL: http://svn.apache.org/viewvc?rev=930923&view=rev
Log:
Wire VelocityResponseWriter into the example configuration

Added:
    lucene/dev/trunk/solr/example/solr/conf/velocity/
    lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm
Modified:
    lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml

Modified: lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml?rev=930923&r1=930922&r2=930923&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml (original)
+++ lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml Mon Apr  5 17:56:18 2010
@@ -55,6 +55,7 @@
        classpath, this is useful for including all jars in a directory.
     -->
   <lib dir="../../contrib/extraction/lib" />
+  <lib dir="../../contrib/velocity/src/main/solr/lib" />
   <!-- When a regex is specified in addition to a directory, only the files in that
        directory which completely match the regex (anchored on both ends)
        will be included.
@@ -1033,6 +1034,8 @@
     <queryResponseWriter name="custom" class="com.example.MyResponseWriter"/>
   -->
 
+  <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter"/>
+
   <!-- XSLT response writer transforms the XML output by any xslt file found
        in Solr's conf/xslt directory.  Changes to xslt files are checked for
        every xsltCacheLifetimeSeconds.  

Added: lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm?rev=930923&view=auto
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm (added)
+++ lucene/dev/trunk/solr/example/solr/conf/velocity/VM_global_library.vm Mon Apr  5 17:56:18 2010
@@ -0,0 +1,11 @@
+#macro(nl2ul $named_list)
+  <ul>
+  #foreach($kv in $named_list)
+    <li>$kv.key ($kv.value)
+      #nl2ul($kv.value)
+    </li>
+  #end
+  </ul>
+#end
+
+#macro(param $key)$request.params.get($key)#end