0

Rails5, i have it installed on database

pg_trgm       | 1.1     | public     | text similarity measurement and index searching based on trigrams) 

and in the initializer :

PgSearch.multisearch_options = {
  :using => [:tsearch, :trigram],
}

i've tried it with only :trigram (not :tsearch), doesn't work, even after db:reset and rake pg_search:multisearch:rebuild[AllModels].

Am I missing a step?

daveasdf
  • 83
  • 1
  • 12

1 Answers1

1

I'm the author of pg_search.

Trigram search requires the pg_trgm extension.

See the pg_search README and the wiki page for Installing PostgreSQL Extensions for more details.

Grant Hutchins
  • 4,275
  • 1
  • 27
  • 32