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 2010/04/13 16:13:40 UTC
[Solr Wiki] Update of "VelocityResponseWriter" by RobertMuir
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 RobertMuir.
The comment on this change is: update trunk location.
http://wiki.apache.org/solr/VelocityResponseWriter?action=diff&rev1=26&rev2=27
--------------------------------------------------
= Instructions to use =
These steps will get you up and running for the examples below:
- * Check out Solr trunk: svn co https://svn.apache.org/repos/asf/lucene/solr/trunk
+ * Check out Solr trunk: svn co https://svn.apache.org/repos/asf/lucene/dev/trunk
* Build Solr: ant clean example
* Fire up Solr: cd example; java -Dsolr.solr.home=../contrib/velocity/src/main/solr/ -jar start.jar
* Index sample docs: cd example/exampledocs; java -jar post.jar *.xml
@@ -97, +97 @@
* {{{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.
+ * {{{page}}}: a [[http://svn.apache.org/viewvc/lucene/dev/trunk/solr/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.
* {{{sort}}}: a Velocity [[http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/SortTool.html|SortTool]] instance