From 8b22c59bece91728892190617be1612fed8bf59d Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 18 Nov 2015 20:04:19 +0100 Subject: [PATCH] removes trigram search algorithm --- app/models/proposal.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/proposal.rb b/app/models/proposal.rb index 1f3518144..ffccc8bf7 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -51,8 +51,7 @@ class Proposal < ActiveRecord::Base tags: :name }, using: { - tsearch: { dictionary: "spanish", tsvector_column: 'tsv' }, - trigram: { threshold: 0.1 }, + tsearch: { dictionary: "spanish", tsvector_column: 'tsv' } }, ranked_by: '(:tsearch + proposals.cached_votes_up)', order_within_rank: "proposals.created_at DESC"