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/spec/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
account_search_service_spec.rb Add more accurate account search (#11537) 6 years ago
after_block_domain_from_account_service_spec.rb
after_block_service_spec.rb
app_sign_up_service_spec.rb
authorize_follow_service_spec.rb
batched_remove_status_service_spec.rb Remove WebSub subscriptions (#11303) 6 years ago
block_domain_service_spec.rb
block_service_spec.rb
bootstrap_timeline_service_spec.rb
fan_out_on_write_service_spec.rb
favourite_service_spec.rb
fetch_link_card_service_spec.rb
fetch_oembed_service_spec.rb
fetch_remote_account_service_spec.rb Add ActivityPub actor representing the entire server (#11321) 6 years ago
fetch_remote_status_service_spec.rb
fetch_resource_service_spec.rb Add ActivityPub actor representing the entire server (#11321) 6 years ago
follow_service_spec.rb
hashtag_query_service_spec.rb
import_service_spec.rb
mute_service_spec.rb
notify_service_spec.rb
post_status_service_spec.rb
precompute_feed_service_spec.rb
process_mentions_service_spec.rb
reblog_service_spec.rb
reject_follow_service_spec.rb
remove_status_service_spec.rb Remove WebSub subscriptions (#11303) 6 years ago
report_service_spec.rb Set and store report URIs (#10303) 6 years ago
resolve_account_service_spec.rb
resolve_url_service_spec.rb Refactor fetching of remote resources (#11251) 6 years ago
search_service_spec.rb Add search syntax for operators and phrases (#11411) 6 years ago
suspend_account_service_spec.rb Remove WebSub subscriptions (#11303) 6 years ago
unblock_domain_service_spec.rb Add domain block notes (#11515) 6 years ago
unblock_service_spec.rb
unfollow_service_spec.rb
unmute_service_spec.rb
verify_link_service_spec.rb