lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r930923 - in /lucene/dev/trunk/solr/example/solr/conf: solrconfig.xml velocity/ velocity/VM_global_library.vm
Date Mon, 05 Apr 2010 17:56:18 GMT
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



Mime
View raw message