increasing trigram threshold for debates

This commit is contained in:
rgarcia
2015-10-30 21:32:16 +01:00
parent 57b9266675
commit 3eb9fb41aa

View File

@@ -47,7 +47,7 @@ class Debate < ActiveRecord::Base
},
using: {
tsearch: {},
trigram: { threshold: 0.1 },
trigram: { threshold: 0.9 },
},
ranked_by: '(:tsearch + debates.cached_votes_up)',
order_within_rank: "debates.created_at DESC"