Links
acts_as_tsearch
Categories
acts_as_tsearch
Super 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")
Vitals
| Home | http://code.google.com/p/acts-as-tsearch/ |
|---|---|
| Repository | http://acts-as-tsearch.googlecode.com/svn/trunk/ |
| License | Rails' (MIT) |
| Tags |
"full postgres postgressql search search"
|
| Rating | (5 votes) |
| Owner | Ben Wiseley |
| Created | 7 February 2007 |

