lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance Norskog (JIRA)" <>
Subject [jira] Commented: (SOLR-1354) Pass HTTP request parameters through to XSL scripts
Date Sun, 20 Sep 2009 00:12:16 GMT


Lance Norskog commented on SOLR-1354:


The XML response format only includes the params given on the HTTP url, not the params acquired

Echoparams does not show the defaults/invariants/appends. This is good, because these additional
parameters are a security feature that allows you to expose certain search features to customers.

So, the solrconfig.xml in the patch sets various RSS parameters and these cannot be brought
into the output XML document. 

So, to make an RSS/ATOM/etc. xsl script that is programmable through params, the XSL transformer
really must explicitly pass the parameters.

> Pass HTTP request parameters through to XSL scripts
> ---------------------------------------------------
>                 Key: SOLR-1354
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>         Environment: Any JDK from 1.5 onward. Any OS. Uses standard XSLTC 'compiled'-only
version of Apache Xalan distributed with the JRE.
>            Reporter: Lance Norskog
>            Priority: Minor
>         Attachments: rss2.patch
> It is not possible to create a standard web application with the Solr distribution without
coding in XSL, Ruby, HTML/Javascript etc.
> This patch is an experiment that allows you to configure an RSS 2.0 feed through HTTP
parameters. To do this, it supplies:
> 1) a change to to pass an HTTP parameter named '' through as an
XSL parameter called 'name'. The XSL script must then declare 'name' as a global parameter.
> 2) example/solr/conf/xslt/rss2.xsl - a mostly complete implementation of RSS 2.0.
> 3) a sample <requestHandler> in example/solr/conf/solrconfig.xml which configures
solr/rss2 as an RSS feed for the sample electronics store in example/solr. This <requestHandler>
supplies all parameters for the RSS feed.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message