sorting by a column, or by score:

     if ('date' == sort)
       options.merge!({ :sort => Ferret::Search::SortField.new 
('search_date', :reverse => :true) })
     else
       options.merge!({ :sort => Ferret::Search::SortField::SCORE })
     end

hope this helps.

John
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to