diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-10 03:45:29 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-10 03:45:29 -0600 |
commit | f03960382bd05b8570e0e3b1066545831c59138a (patch) | |
tree | e7f4b362018e17e2a475a9c2e6988b0ebd79ac5d /app/lib/bangtags.rb | |
parent | 4c8591fbeae9054a354f955e37a95aeed369222a (diff) |
switch (back) to postgres fts engine for fast search & timeline filters
Diffstat (limited to 'app/lib/bangtags.rb')
-rw-r--r-- | app/lib/bangtags.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index a3874c128..9fec00d9d 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -3,7 +3,6 @@ class Bangtags include ModerationHelper include ServiceAccountHelper - include SearchHelper attr_reader :status, :account @@ -764,7 +763,7 @@ class Bangtags q = cmd[1..-1].join.strip next if q.blank? begin - data = @account.statuses.regex(expand_search_query(q)) + data = @account.statuses.search(q.unaccent) .reorder(:created_at) .pluck(:created_at) .map { |d| d.strftime('%Y-%m') } |