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 2009/08/25 21:27:04 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:
Alphabetize Velocity context objects, add missing list tool

------------------------------------------------------------------------------
  
  == Velocity Context ==
  
+  * {{{esc}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/generic/EscapeTool.html EscapeTool] instance
+  * {{{date}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/ComparisonDateTool.html ComparisonDateTool] instance
+  * {{{list}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/ListTool.html ListTool] instance
+  * {{{math}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/generic/MathTool.html MathTool] instance
+  * {{{number}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/NumberTool.html NumberTool] 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.  page only is added to the context when response is a QueryResponse.
   * {{{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/client/solrj/response/QueryResponse.html QueryResponse] most of the time, but in some cases where QueryResponse doesn't like the request handlers output (AnalysisRequestHandler, for example, causes a ClassCastException parsing "response") the response will be a SolrResponseBase object.
-  * {{{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.  page only is added to the context when response is a QueryResponse.
-  * {{{esc}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/generic/EscapeTool.html EscapeTool] instance
   * {{{sort}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/SortTool.html SortTool] instance
-  * {{{number}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/NumberTool.html NumberTool] instance
-  * {{{date}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/ComparisonDateTool.html ComparisonDateTool] instance
-  * {{{math}}}: a Velocity [http://velocity.apache.org/tools/releases/1.4/generic/MathTool.html MathTool] instance
  
  == TODO ==