lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "VelocityResponseWriter" by ErikHatcher
Date Sat, 13 Aug 2011 01:02:38 GMT
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)
  
  

Mime
View raw message