Permalink
Browse files

Remove sort by date since it was overriding relevance

  • Loading branch information...
1 parent abf93d9 commit 23fc289cddfb7b27be0a946885faa9a3736d74f2 @rwdaigle committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/gist.rb
View
@@ -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

0 comments on commit 23fc289

Please sign in to comment.