lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raimon Bosch <raimon.bo...@gmail.com>
Subject include score in sort function
Date Sun, 11 Dec 2011 21:55:38 GMT
Hi,

I was testing the sorting by function query
https://issues.apache.org/jira/browse/SOLR-1297 and I was trying something
like:

http://localhost:8084/solr35/myapp/select/?wt=xml&start=0&rows=13&q.alt=my+query&sort=sum(mul(score,3),mul(num_visits,2))%20desc

In this way we will be able to add little modifications to our score
formula by giving weight to other numeric fields. The problem is that the
score is not considered as a field inside the sorting function and it only
works with numeric fields already in your index
i.e sort=sum(mul(num_points,3),mul(num_visits,2))%20desc

There is another way to include original score on this sort function?

Mime
View raw message