Wire VelocityResponseWriter into the example configuration

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@930923 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2010-04-05 17:56:18 +00:00
parent 0efaf5fc04
commit 91e8bdca53
2 changed files with 14 additions and 0 deletions

View File

@ -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.

View File

@ -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