On Jan 17, 2007, at 3:42 PM, John Bachir wrote:

> 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


Also, if you want to sort by a column, it can't be tokenized

  acts_as_ferret :fields => { ............
                              :search_date => {:term_vectors  
=> :no, :index => :untokenized }
...........
},
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to