收录日期:2019/08/18 17:19:12 时间:2010-06-16 01:28:44 标签:java,apache,tomcat,solr

The question is simple - we have a sample / test Solr app running that only responds with XML right now. Is there an easy way to change that output to HTML? Running Tomcat as the app server.

You need to do XSLT transformations. There are a few samples built in I believe... check out http://wiki.apache.org/solr/XsltResponseWriter

Check out VelocityResponseWriter (aka Solritas) which uses Velocity templates to generate output. It's substantially easier to use than XSLT.

Here's an introduction.