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 2008/11/18 12:08:39 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 following page has been changed by ErikHatcher:
http://wiki.apache.org/solr/VelocityResponseWriter

The comment on the change is:
Update docs to match latest commit - v. parameter prefixing, json escape/wrap

------------------------------------------------------------------------------
  
    Renders browse.vm from conf/velocity.  Faceted navigation included.
   
- http://localhost:8983/solr/itas?template.header=Custom%20Header
+ http://localhost:8983/solr/itas?v.template.header=Custom%20Header
  
    Renders browse.vm, but overrides the header.vm from conf/velocity with the specified value.
  
@@ -34, +34 @@

  
  == Options ==
  
-  * {{{template}}}: template name to use, without the .vm suffix.  If not specified, "default"[.vm] will be used.
+  * {{{v.template}}}: template name to use, without the .vm suffix.  If not specified, "default"[.vm] will be used.
-  * {{{template.<name>}}}: overrides a file system template
+  * {{{v.template.<name>}}}: overrides a file system template
   * {{{debugQuery}}}: if true, default view displays explanations for each hit and additional debugging information in the footer.
+  * {{{v.json}}}: Escapes and wraps Velocity generated response with v.json parameter as a JavaScript function.
  
  == Velocity Context ==
  
   * {{{request}}}: a [http://lucene.apache.org/solr/api/org/apache/solr/request/SolrQueryRequest.html SolrQueryRequest]
   * {{{response}}}: a [http://lucene.apache.org/solr/api/org/apache/solr/request/SolrQueryResponse.html SolrQueryResponse]
-  * {{{page}}}: a PageTool instance
+  * {{{page}}}: a [http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/velocity/src/main/java/org/apache/solr/request/PageTool.java?view=markup PageTool] instance
+  * {{{esc}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/generic/EscapeTool.html EscapeTool] instance
  
  == TODO ==