You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/08/13 03:02:38 UTC
[Solr Wiki] Update of "VelocityResponseWriter" by ErikHatcher
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "VelocityResponseWriter" page has been changed by ErikHatcher:
http://wiki.apache.org/solr/VelocityResponseWriter?action=diff&rev1=32&rev2=33
* {{{v.json}}}: Escapes and wraps Velocity generated response with v.json parameter as a JavaScript function.
* {{{v.layout}}}: Template name that wraps main template (v.template). Main template renders to a $content that can be used in layout template.
* {{{v.base_dir}}}: overwrites default template load path (conf/velocity/).
- * {{{v.properties}}}: specifies a velocity properties file (velocity.propeties) to be applied.
+ * {{{v.properties}}}: specifies a Velocity properties file to be applied, found using the Solr resource loader mechanism. If not specified, no .properties file is loaded. Example: v.properties=velocity.properties where velocity.properties can be found using Solr's resource loader mechanism (say in a .jar in <solr-home>/lib).
* {{{v.contentType}}}: sets the value of the HTTP response's Content-Type header (in case (x)html pages should be UTF-8 (instead of ISO-8859-1) encoded, make sure you set this option to {{{text/xml;charset=UTF-8}}} (for XHTML) and {{{text/html;charset=UTF-8}}} (for HTML), respectively)