On Sun, Apr 01, 2007 at 07:32:35PM -0400, John Bachir wrote:
> After switching to the DRb server, I am experiencing strange behavior  
> when sorting on score. My app was working as expected before the switch.
> 
> Both before and after the switch, my app sorts properly on other  
> fields, such as date.
> 
> For sorting on score, I am using the following option  
> find_by_contents option:
> 
> :sort => Ferret::Search::SortField::SCORE

I had to build custom marshalling routines to support sort fields and it
seems I missed that one.

Adding this line:

return Ferret::Search::SortField::SCORE if string == '<SCORE>'

before line 142 in acts_as_ferret.rb should resolve the issue. Or get
the latest aaf from trunk.


Jens

-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to