removes trigram search algorithm

This commit is contained in:
rgarcia
2015-11-18 20:04:19 +01:00
parent 119cda0a0d
commit 8b22c59bec

View File

@@ -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"