On Fri, Nov 28, 2008 at 8:33 PM, outre <[EMAIL PROTECTED]> wrote: > > Hi, > > I was wondering if function queries are supported in SOLR1.3? > > I looked thru http://wiki.apache.org/solr/FunctionQuery, and tried to run an > example on my SOLR setup. It doesn't seem though that _val_ hook has any > effect on sorting, and "score" parameter doesn't seem to return computed > values. > > In my index I have fields "price" (double) and "store"(string), and just for > the sake of an example all I am doing is multiplying the price by 2. So my > query looks like this: > q=store:"adidas"&_val_:"product(price,2)"&fl=store,price,score
_val_ is a magic field name for the lucene/solr query parser. So try something with _val_ in the query string: q=_val_:"product(price,2)" -Yonik > Based on wiki, I'd expect to see doubled price in the score field, but I > seem to be getting SOLR document scores. Am I misunderstanding something > here? > > Thanks > -- > View this message in context: > http://www.nabble.com/Function-Queries-tp20742850p20742850.html > Sent from the Solr - User mailing list archive at Nabble.com. > >