On Oct 19, 2007, at 8:30 AM, Robert Young wrote:
Is it possible to configure which xsl file to use for a particular
queryResponseWriter in the solrconfig.xml?
I don't believe so, but instead I think something like this will work:
<requestHandler name="opensearch"
class="solr.StandardRequestHandler">
<lst name="invariants">
<str name="wt">xslt</str>
<str name="tr">opensearch.xsl</str>
</lst>
</requestHandler>
And then a ?qt=opensearch should do the trick. The dilemma here is
that you can't then toggle between various request handlers, unless
you mapped them separately.
Erik
I would like to have something like the following so that I don't have
put it in for every query.
<queryResponseWriter name="opensearch" default="true"
class="org.apache.solr.request.XSLTResponseWriter">
<int name="xsltCacheLifetimeSeconds">5</int>
<str name="tr">opensearch.xsl</str>
</queryResponseWriter>
Any ideas?
Cheers
Rob