Re: Is there a way to modify the request handler parameters dynamically?
: change the highlight search component to use different search component : based on a query parameter What do you mean by use different search component ? Differnet how? What is the actual use case / goal you are trying to achieve? https://people.apache.org/~hossman/#xyproblem XY Problem Your question appears to be an XY Problem ... that is: you are dealing with X, you are assuming Y will help you, and you are asking about Y without giving more details about the X so that we can understand the full issue. Perhaps the best solution doesn't involve Y at all? See Also: http://www.perlmonks.org/index.pl?node_id=542341 -Hoss http://www.lucidworks.com/
Is there a way to modify the request handler parameters dynamically?
Hi, I need to change the components (inside a request handler) dynamically using query parameters instead of creating multiple request handlers. Is it possible to do this on the fly from the query? For Ex: change the highlight search component to use different search component based on a query parameter requestHandler class=solr.StandardRequestHandler name=/test arr name=components strfilterbyrole/str strlandingPage/str strfirstRulesComp/str strquery/str * strhighlight/str * strfacet/str strspellcheck/str strlastRulesComp/str strdebug/str strelevator/str /arr /requestHandler -- View this message in context: http://lucene.472066.n3.nabble.com/Is-there-a-way-to-modify-the-request-handler-parameters-dynamically-tp4156697.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Is there a way to modify the request handler parameters dynamically?
Hi, You can skip certain components. Every component has a name, if you set its name to false, it is skipped. Example : facet=false or query=false but you cannot change order of them. You need a custom RequestHandler for that. Ahmet On Wednesday, September 3, 2014 10:12 PM, bbarani bbar...@gmail.com wrote: Hi, I need to change the components (inside a request handler) dynamically using query parameters instead of creating multiple request handlers. Is it possible to do this on the fly from the query? For Ex: change the highlight search component to use different search component based on a query parameter requestHandler class=solr.StandardRequestHandler name=/test arr name=components strfilterbyrole/str strlandingPage/str strfirstRulesComp/str strquery/str * strhighlight/str * strfacet/str strspellcheck/str strlastRulesComp/str strdebug/str strelevator/str /arr /requestHandler -- View this message in context: http://lucene.472066.n3.nabble.com/Is-there-a-way-to-modify-the-request-handler-parameters-dynamically-tp4156697.html Sent from the Solr - User mailing list archive at Nabble.com.