Rails5,我已将其安装在数据库中
pg_trgm | 1.1 | public | text similarity measurement and index searching based on trigrams)
并在初始化程序中:
PgSearch.multisearch_options = {
:using => [:tsearch, :trigram],
}
我只用:trigram(不是:tsearch)尝试过,即使在 db:reset 和 rake pg_search:multisearch:rebuild[AllModels] 之后也不起作用。
我错过了一步吗?