Hey Jan,
if the goal here is to get the un-parsed query string, independent of any
possible localparams, then the "best" way to do that is to use the
QParser.getParser statc method to parse things, and then pull the "v"
param (QueryParsing.V) out of the Local Params that you get.
Even that much may not be neccessary if QueryComponent.prepare() has
already been run -- then you already know *exactly* what QParser was used
(no need to parse again) and you can get it from the ResponseBuilder & ask
it for it's local params...
String s = rb.getQparser().getLocalParams().get(QueryParsing.V)
this logic you added here...
: + if (queryString == null || !queryString.startsWith("{!") ||
queryString.indexOf("}") == -1) {
: + return queryString;
: + }
: +
: + return queryString.substring(queryString.indexOf("}")+1);
...probably isn't going to do what folks expect in a situation like
this...
q={!lucene q.op=AND v=$qq}&qq=foo
-Hoss
http://www.lucidworks.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]