using rb.req.getParams().get("blip") inside prepare(ResponseBuilder)'s subclass of QueryComponent I could easily get the extra http request param.
However, how would I change the query? using rb.setQuery(xxx) within that same prepare method seems to have no effect. paul Le 18 févr. 2011 à 19:51, Tommaso Teofili a écrit : > Hi Paul, > me and a colleague worked on a QParserPlugin to "expand" alias field names > to many existing field names > ex: q=mockfield:val ==> q=actualfield1:val OR actualfield2:val > but if you want to be able to use other params that come from the HTTP > request you should use a custom RequestHandler I think, > My 2 cents, > Tommaso > > > 2011/2/18 Em <mailformailingli...@yahoo.de> > >> >> Hi Paul, >> >> what do you understand by saying "extra parameters"? >> >> Regards >> >> >> Paul Libbrecht-4 wrote: >>> >>> >>> Hello Solr-friends, >>> >>> I want to implement a query-expander, one that enriches the input by the >>> usage of extra parameters that, for example, a form may provide. >>> >>> Is the right way to subclass SearchHandler? >>> Or rather to subclass QueryComponent? >>> >>> thanks in advance >>> >>> paul >>> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Best-way-for-a-query-expander-tp2528194p2528736.html >> Sent from the Solr - User mailing list archive at Nabble.com. >>