开发者

Can Apache Solr output HTML instead of XML?

开发者 https://www.devze.com 2023-01-04 02:40 出处:网络
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 Tom开发者_Go百科cat as the app serv

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 Tom开发者_Go百科cat as the app server.


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

Here's an introduction.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消