improves search order
This commit is contained in:
@@ -54,8 +54,8 @@ class Proposal < ActiveRecord::Base
|
||||
tsearch: { dictionary: "spanish", tsvector_column: 'tsv' }
|
||||
},
|
||||
ignoring: :accents,
|
||||
ranked_by: '(:tsearch + proposals.cached_votes_up)',
|
||||
order_within_rank: "proposals.created_at DESC"
|
||||
ranked_by: '(:tsearch)',
|
||||
order_within_rank: "proposals.cached_votes_up DESC"
|
||||
}
|
||||
|
||||
def searchable_values
|
||||
|
||||
Reference in New Issue
Block a user