Jens Kraemer wrote:

> 
> my fault, I just cut'n'pasted the code from the test.
> replace the
> sorting = ...
> line with:
> sorting = [ Ferret::Search::SortField::SCORE ]


so i must be giving you a headache.  :(  when i put this in

sort = [ Ferret::Search::SortField::SCORE ]

it works just fine, but if i put this in

sort = [ Ferret::Search::SortField::SCORE(:reverse => true) ]

i get

undefined method `SCORE' for Ferret::Search::SortField:Class

there's probably something really really simple that i missed.

here's the whole function for reference.


    sort = [ Ferret::Search::SortField::SCORE(:reverse => true) ]
    @results = Site.multi_search(params[:search_terms], [ Link, Post ], 
{:limit => :all, :sort => sort })

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to