diff --git a/app/models/debate.rb b/app/models/debate.rb index b3468a94e..17560e246 100644 --- a/app/models/debate.rb +++ b/app/models/debate.rb @@ -46,7 +46,8 @@ class Debate < ActiveRecord::Base tags: :name }, using: { - trigram: { threshold: 0.9 }, + tsearch: { dictionary: "spanish" }, + trigram: { threshold: 0.1 }, }, ranked_by: '(:tsearch + debates.cached_votes_up)', order_within_rank: "debates.created_at DESC"