Rather than using org.apache.solr.request.SolrParams, try using org.apache.solr.common.params.SolrParms.

--
- Mark

http://www.lucidimagination.com



Julian Davchev wrote:
Hi devs,

I am not sure if mailing list is for solr developers only or include
extending solr as well.


I ended up building own plugin(class) which extends
handler.component.SearchHandler    cause  I wan to use all it's
functionlity only to adjust the q param before it gets preocessed.

How exactly can I get the q and set it back later?
From digging code it seems thats the way....

SolrParams p = req.getParams();
String words = p.get("q");

but I get SolrParams    is depricated  and type mismatch cannot convert
SolrParams to SolrParams

even like this
SolrParams p = (SolrParams) req.getParams();

I get error and 500 when trying to use it.

Any pointers to howto set and get are more than welcome.   at end of it
I am using super.handleRequestBody(req, rsp);   so no other stuff to mess.


Again, sorry if this mailing list is not for user development issues.

Bug free,
JD


Reply via email to