: Do you have any plans to support function queries on score field? for
: example, sort=floor(product(score, 100)+0.5) desc?

You most certianly can conput function queries on the the "score" of a 
query, but you have to be explicit about which query you want to use the 
score of.  You seem to already know this...

: I can't use subquery in this case because I am trying to use secondary
: sorting, however I will be open for that if someone successfully use
: another field to boost the results.

...i don't understand your explanation of why you can't specify a 
"subquery" to indicate what you want to sort on.

a) the "subquery" can be the exact query you executed (you can even use 
variable substitution to garuntee it)

b) wether you use secondary sorting has no impact on how the function is 
computed

Here's an example using the solr sample data that works great...

q=ipod&fl=inStock,id,price,score&sort=inStock+desc,+product(price,query($q))+desc




-Hoss

Reply via email to