You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/services
Eugen Rochko 8fdff2748f
Add more accurate account search (#11537)
* Add more accurate account search

When ElasticSearch is available, a more accurate search is implemented:

- Using edge n-gram index for acct and display name
- Using asciifolding and cjk width normalization on display names
- Using Gaussian decay on account activity for additional scoring (recency)
- Using followers/friends ratio for additional scoring (spamminess)
- Using followers number for additional scoring (size)

The exact match precedence only takes effect when the input conforms
to the username format and the username part of it is complete, i.e.
when the user started typing the domain part.

* Support single-letter usernames

* Fix tests

* Fix not picking up account updates

* Add weights and normalization for scores, skip zero terms queries

* Use local counts for accounts index, adjust search parameters

* Fix mistakes

* Using updated_at of accounts is inadequate for remote accounts
6 years ago
..
activitypub Refactor fetching of remote resources (#11251) 6 years ago
concerns Add whitelist mode (#11291) 6 years ago
account_search_service.rb Add more accurate account search (#11537) 6 years ago
after_block_domain_from_account_service.rb Change account domain block to clear out notifications and follows (#11393) 6 years ago
after_block_service.rb Change account domain block to clear out notifications and follows (#11393) 6 years ago
app_sign_up_service.rb
authorize_follow_service.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
backup_service.rb Fix BackupService crashing when an attachment is missing (#11241) 6 years ago
base_service.rb
batched_remove_status_service.rb Fix non-lowercase hashtags not being picked up by the streaming API (#11508) 6 years ago
block_domain_service.rb Add domain block notes (#11515) 6 years ago
block_service.rb Fix BlockService trying to reject incorrect follow request (#11288) 6 years ago
bootstrap_timeline_service.rb
fan_out_on_write_service.rb Fix non-lowercase hashtags not being picked up by the streaming API (#11508) 6 years ago
favourite_service.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
fetch_link_card_service.rb Refactor fetching of remote resources (#11251) 6 years ago
fetch_oembed_service.rb
fetch_remote_account_service.rb Refactor fetching of remote resources (#11251) 6 years ago
fetch_remote_status_service.rb Refactor fetching of remote resources (#11251) 6 years ago
fetch_resource_service.rb Add HTTP signatures to all outgoing ActivityPub GET requests (#11284) 6 years ago
follow_service.rb Change account domain block to clear out notifications and follows (#11393) 6 years ago
hashtag_query_service.rb Change hashtags to preserve first-used casing (#11416) 6 years ago
import_service.rb Export and import show_reblogs together with following list (#10495) 6 years ago
mute_service.rb
notify_service.rb
post_status_service.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
precompute_feed_service.rb
process_hashtags_service.rb Change hashtags to preserve first-used casing (#11416) 6 years ago
process_mentions_service.rb Remove Atom feeds and old URLs in the form of `GET /:username/updates/:id` (#11247) 6 years ago
reblog_service.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
reject_follow_service.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
remove_status_service.rb Fix non-lowercase hashtags not being picked up by the streaming API (#11508) 6 years ago
report_service.rb Refactor all ActivityPub deliveries to be serialized and signed through one concern (#10966) 6 years ago
resolve_account_service.rb Fix acct URIs with IDN domains not being resolved (#11520) 6 years ago
resolve_url_service.rb Fix leaking private statuses the admin account follows (#11300) 6 years ago
search_service.rb Add search syntax for operators and phrases (#11411) 6 years ago
suspend_account_service.rb Fix invites not being disabled upon account suspension (#11412) 6 years ago
unallow_domain_service.rb Add whitelist mode (#11291) 6 years ago
unblock_domain_service.rb Add domain block notes (#11515) 6 years ago
unblock_service.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
unfavourite_service.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
unfollow_service.rb Remove Salmon and PubSubHubbub (#11205) 6 years ago
unmute_service.rb
update_account_service.rb
verify_link_service.rb
vote_service.rb Refactor all ActivityPub deliveries to be serialized and signed through one concern (#10966) 6 years ago