Presentation from OSDC 2008 in Sydney, on using Sphinx with Rails. The sldes don't work that well without the talk though, but it may be useful as a reference, I guess.
51. class User < ActiveRecord::Base
define_index do
# ...
set_property :field_weights => {
quot;first_namequot; => 10,
quot;last_namequot; => 10,
quot;locationquot; => 5
}
end
end