Re: Any plans to support function queries on score?

2011-10-04 Thread Chris Hostetter

: 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=ipodfl=inStock,id,price,scoresort=inStock+desc,+product(price,query($q))+desc




-Hoss


Any plans to support function queries on score?

2011-09-26 Thread Way Cool
Hi, guys,

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

So far I am getting the following error:
undefined field score

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.

Thanks,

YH
http://thetechietutorials.blogspot.com/