diff --git a/app/models/debate.rb b/app/models/debate.rb index 9902f7e72..086bd5ae4 100644 --- a/app/models/debate.rb +++ b/app/models/debate.rb @@ -48,10 +48,10 @@ class Debate < ActiveRecord::Base }, using: { tsearch: { dictionary: "spanish" }, - trigram: { threshold: 0.1 }, }, - ranked_by: '(:tsearch + debates.cached_votes_up)', - order_within_rank: "debates.created_at DESC" + ignoring: :accents, + ranked_by: '(:tsearch)', + order_within_rank: "debates.cached_votes_up DESC" } def description