Casecommons/pg_search — pull request #69 by victor-github (2012-10-14 15:03:54+00:00)
Title: Specify which Postsgresql schema to peform the index rebuilding in

I added SCHEMA option to pg_search:multisearch:rebuild rake task, to allow optionally specifying the Postgresql schema to perform the rebuilding in.

#Rebuilds the index in schema "1"
bundle exec rake pg_search:multisearch:rebuild[Entity] SCHEMA=1

#Rebuilds the index in the default schema
bundle exec rake pg_search:multisearch:rebuild[Entity]

Previously, the index rebuilding is attempted only in the default schema, which makes it impossible to perform it in a multi-tenant application with multiple schemas.