Seems that way. Sounds like it needs some deeper troubleshooting.

Ah... try this, wrap the query function with a "product" function that simply multiplies by 1 to force the conversion

q=table&bf=product(scale(product(query({!v='color'}),1),0,1),100)

Even if that does work, sounds like a bug.

-- Jack Krupansky

-----Original Message----- From: Anatoli Matuskova
Sent: Monday, January 21, 2013 9:10 PM
To: solr-user@lucene.apache.org
Subject: Re: bf, nested queries and local params

q=table&bf=product(scale(query({!v='color'}),0,1),100)

Gives me back the same exception. Once the query query({!v='color'}) is
executed, the scale is it supposed to use as first param the score of the
nested query? I'm doing that assumption but seems not to be true:

java.lang.ClassCastException: org.apache.lucene.search.TermQuery$TermWeight
cannot be cast to
org.apache.lucene.queries.function.valuesource.ScaleFloatFunction$ScaleInfo

Seems like it is returning a TermWeight?



--
View this message in context: http://lucene.472066.n3.nabble.com/bf-nested-queries-and-local-params-tp4035216p4035233.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to