(10/07/10 0:54), Saïd Radhouani wrote:
Hi,
I'm making some basic sorting (date, price, etc.) using the "sort" parameter
(sort=field+asc), and it's working fine. I'm wondering whether there's a significant argument to
use function query sorting instead of the "sort" parameter?
Thanks,
-S
I'm not sure if I understand your question correctly,
but sort by function will be available in next version of Solr:
https://issues.apache.org/jira/browse/SOLR-1297
q=ipod&sort=func(price) asc
Or you can sort by function via _val_ in Solr 1.4:
q=ipod^0 _val_:"func(price)"&sort=score asc
Koji
--
http://www.rondhuit.com/en/