Plugins - acts_as_tsearch
Add to favoritesSuper simple full text search for any model if you're running against Postgresql for the database.
* High speed searching on any Rails model class simply by adding acts_as_tsearch to your model.
* Index is updated whenever you create or save a row in your model. Index updates are very fast. This happens behind the scenes using the typical Rails "magic".
* TSearch generates headlines which are short summaries showing where your search terms were found in the text. It even puts bold tags around the results.
* Easily scalable since it's all in your database. No sharing of file stores needed or redundant indexes repositories.
Example:
class Blog < ActiveRecord::Base
acts_as_tsearch :fields => ["title","description"]
end
Blog.find_by_tsearch("bob")
http://code.google.com/p/acts-as-tsearch/
http://acts-as-tsearch.googlecode.com/svn/trunk/
Rails' (MIT)
Searching and Queries
