Overview of some of the advanced features of Sphinx/Thinking Sphinx. Facets, Excerpts, Internationalisation, Multiple-Server Deployment, Geo-Searching and Sphinx Scope.
12. class Article < ActiveRecord::Base
# ...
define_index do
indexes title, body
indexes author.name,
:as => :author
has created_at, updated_at
has author_id
end
# ...
end