The variable substitution in the solrconfig.xml happens when that file
is loaded, right at the start of core initialization. Your request
variable comes much later. I don't think you can expand it this way.

Could you explain a bit more what you are trying to achieve in
business terms. E.g. 'weather' term needs to feed into something else
in query I am guessing.

Regards,
    Alex.
----
Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 2 October 2016 at 22:29, Mark Robinson <mark123lea...@gmail.com> wrote:
> Hi,
>
> I pass a parameter *&country=USA* from the browser as part of my query.
> (I have fields *weather_USA*, *weather_UK* etc... in my document).
> How do I retrieve the parameter "country" in my requesthandler.
>
> I tried in my requesthandler:-
>
>     <lst name="defaults">
>         <str name="country">storeId</str>
>         <str name="weather">weather_${country}</str>
>
>         ...but it is not working.  Even tried:-
>              <str name="weather">weather_$country</str>
>
>         I am trying to set my weather field based on the *country *passed.
>
>   Any suggestionsis is highly appreciated.
>
> Thanks!
> Mark

Reply via email to