lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Chunki <lck7...@coupang.com>
Subject Re: Modify/add/remove params at search component
Date Tue, 05 Aug 2014 06:16:35 GMT

Hi Umesh Prassad,

it makes my code simpler than before.

Thank you,
Chunki.

On Aug 4, 2014, at 9:48 PM, Umesh Prasad <umesh.iitk@gmail.com> wrote:

> 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