Skip to content

Commit

Permalink
Remove sort by date since it was overriding relevance
Browse files Browse the repository at this point in the history
  • Loading branch information
rwdaigle committed Oct 9, 2012
1 parent abf93d9 commit 23fc289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/gist.rb
Expand Up @@ -53,7 +53,7 @@ def search(user, q)
log({ns: self, fn: __method__, query: q, measure: true}, user) do
tire.search do
query { string q }
sort { by :gh_created_at, 'desc' }
# sort { by :gh_created_at, 'desc' }
filter :term, :user_id => user.id
highlight :description, :'files.content', :options => { :tag => "<b>" }
size 15
Expand Down

0 comments on commit 23fc289

Please sign in to comment.