lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Robinson <mark123lea...@gmail.com>
Subject Re: Reading a prameter set in browser in request handler
Date Sun, 02 Oct 2016 15:33:12 GMT
Hi,

While copy pasting correcting a typo.

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">country</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!

On Sun, Oct 2, 2016 at 11:29 AM, Mark Robinson <mark123learns@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message