You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by DJP <so...@gmail.com> on 2009/07/01 15:12:14 UTC

Re: searchcomponent howto ...

thanks. that's what I was looking for.



On Mon, Jun 22, 2009 at 4:15 PM, Chris Hostetter
<ho...@fucit.org>wrote:

> : and then ask,
> :    - how can i set the value of query so that it is reflected in the 'q'
> : node of the search results e.g. <str name="q">solr</str>.
> : the example 'process' method above works, but the original query is still
> : written to the search results page.
>
> if you're talking about the param values that get written out in the
> header section, those always contain the "original" params (either form
> the URL, or from defaults in configs ... I don't think you can modify
> those easily.
>
> your component can always add the your new "q" value to the response as a
> new object (with whatever name you want), and your client code can get at
> it that way.
>
>
> -Hoss
>
>