Skip to content

Commit

Permalink
added sorting by datetime; fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
nodecarter committed Mar 6, 2014
1 parent 37ca175 commit 0332bf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/redmine_elasticsearch/patches/search_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def perform_search(options = {})
}
}
},
sort: [
{ datetime: { order: 'desc' } },
:_score
],
facets: {
types: {
terms: {
Expand Down

0 comments on commit 0332bf2

Please sign in to comment.