]> cat aescling's git repositories - mastodon.git/commit
Add more accurate hashtag search (#11579)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 18 Aug 2019 01:45:51 +0000 (03:45 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Aug 2019 01:45:51 +0000 (03:45 +0200)
commitcc0a55cf9aead00e1cb044649f84c2187e0e4a35
tree57c0920e813d7c8df9a0f483f111d2808f5045d3
parent3a77090d015203a1ae20376ed69ca699eed3976d
Add more accurate hashtag search (#11579)

* Add more accurate hashtag search

Using ElasticSearch to index hashtags with edge n-grams and score
them by usage within the last 7 days since last activity. Only
hashtags that have been reviewed and are listable can appear in
searches, unless they match the query exactly

* Fix search analyzer dropping non-ascii characters
app/chewy/tags_index.rb [new file with mode: 0644]
app/models/tag.rb
app/models/trending_tags.rb
app/services/account_search_service.rb
app/services/search_service.rb
app/services/tag_search_service.rb [new file with mode: 0644]
config/locales/simple_form.en.yml
db/migrate/20190815225426_add_last_status_at_to_tags.rb [new file with mode: 0644]
db/schema.rb
spec/models/tag_spec.rb