Show scores

Hi guys
I’m a beginner with ferret and I try to write a little searchengine.
Now, how can I show the score values of the ferret sort?

------- Word Model --------

class Word < ActiveRecord::Base
acts_as_ferret :fields => {
:site => { :boost => 20},
:text => {:boost => 10},
:meta => {:boost => 4}
}
end

------- Word Controller -------

@results = Word.find_by_contents(query, :limit => :all)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs