Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Minimal Ruby on Rails plugin for the Full Text Search engine of PostgreSQL.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 assets
Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 install.rb
Octocat-spinner-32 uninstall.rb


Fork of acts_as_tsearch with a few changes:

  • Return scope instead of collections, so that a search can be combined with existing scopes, will_paginate and most of all, enable lazy loading

  • Check for table existence, to prevent problems with rake db:create/db:drop et. al


  • Postgres version >= 8.3

  • Rails version >= 2.0

Quick Start

  • Preparing your PostgreSQL database

Add a text search configuration 'default':

CREATE TEXT SEARCH CONFIGURATION public.default ( COPY = pg_catalog.english )

Do a search

blog_entries = BlogEntry.find_by_tsearch("bob")
puts blog_entries.tsearch_rank
puts blog_entries.size
puts blog_entries[0].title
Something went wrong with that request. Please try again.