lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Umesh Prasad <umesh.i...@gmail.com>
Subject Re: Modify/add/remove params at search component
Date Mon, 04 Aug 2014 12:48:24 GMT
Use ModifiableParams

             SolrParams params = rb.req.getParams();
            ModifiableSolrParams modifableSolrParams = new
ModifiableSolrParams(params);
            modifableSolrParams.set("ParamName", "paramValue");
            rb.req.setParams(modifableSolrParams)




On 4 August 2014 12:47, Lee Chunki <lck7141@coupang.com> wrote:

> Hi,
>
> I am building a new search component and it runs after QueryComponent.
> What I want to do is set params  like start, rows, query and so on at new
> search component.
>
> I could set/get query by using
> setQueryString()
>
> http://lucene.apache.org/solr/4_9_0/solr-core/org/apache/solr/handler/component/ResponseBuilder.html#setQueryString(java.lang.String)
> getQueryString()
>
> http://lucene.apache.org/solr/4_9_0/solr-core/org/apache/solr/handler/component/ResponseBuilder.html#getQueryString()
>
> and get params by using
> rb.req.getParams()
>
> but how can I set params at search component?
>
> Thanks,
> Chunki.
>
>


-- 
Thanks & Regards
Umesh Prasad
Search Lead@flipkart.com

 in.linkedin.com/pub/umesh-prasad/6/5bb/580/

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