diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-25 16:17:03 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-25 16:17:03 +1100 |
commit | 060d9fe70a1de0ba9aa592d25d6e7352114aa431 (patch) | |
tree | ee1c9485ffce0e7aa956af0133c616651e2ff8fb /app/mailers | |
parent | d09758c79fff462906b48dda6601ced25a8865da (diff) |
Inline method InfoRequest.full_search
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/track_mailer.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/mailers/track_mailer.rb b/app/mailers/track_mailer.rb index ea5489726..bd9ce658d 100644 --- a/app/mailers/track_mailer.rb +++ b/app/mailers/track_mailer.rb @@ -67,7 +67,11 @@ class TrackMailer < ApplicationMailer # Query for things in this track. We use described_at for the # ordering, so we catch anything new (before described), or # anything whose new status has been described. - xapian_object = InfoRequest.full_search([InfoRequestEvent], track_thing.track_query, 'described_at', true, nil, 100, 1) + xapian_object = ActsAsXapian::Search.new([InfoRequestEvent], track_thing.track_query, + :sort_by_prefix => 'described_at', + :sort_by_ascending => true, + :collapse_by_prefix => nil, + :limit => 100) # Go through looking for unalerted things alert_results = [] for result in xapian_object.results |