hey shawn i tried debugging actual solr code in local with the following two
different forms for frange. So to see if solr is somehow parsing it wrong.
But i seed the parsed query that gets put in the filter query pretty much
same.

query1 -> +_val_:{!frange cost=200 l=30 u=100 incl=true incu=false}price
the above get parsed into following:
+ConstantScore(frange(float(price)):[30 TO 100})

qyery2: {!frange cost=200 l=30 u=100 incl=true incu=false}price
this gets parsed into the following:
ConstantScore(frange(float(price)):[30 TO 100})

As you can see the only difference is the leading +(Must clause). But since
this is single clause i assume it doesnt make any difference.


I saw in Qparser.getParser() method there is a check for localparams as
shown below
*if (allowLocalParams && qstr != null &&
qstr.startsWith(QueryParsing.LOCALPARAM_START))*

But it seems like eventually solr figures out how to correctly parse it. Not
sure if i am missing something.




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to