Plugins - acts_as_tsearch

StarAdd to favorites

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")

Ben Wiseley

http://code.google.com/p/acts-as-tsearch/

http://acts-as-tsearch.googlecode.com/svn/trunk/

Rails' (MIT)

  • Currently 4.3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Searching and Queries

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?