• Eugen Rochko's avatar
    Add more accurate account search (#11537) · 8fdff274
    Eugen Rochko authored
    * 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
    8fdff274
Name
Last commit
Last update
..
activitypub Loading commit data...
account_search_service_spec.rb Loading commit data...
after_block_domain_from_account_service_spec.rb Loading commit data...
after_block_service_spec.rb Loading commit data...
app_sign_up_service_spec.rb Loading commit data...
authorize_follow_service_spec.rb Loading commit data...
batched_remove_status_service_spec.rb Loading commit data...
block_domain_service_spec.rb Loading commit data...
block_service_spec.rb Loading commit data...
bootstrap_timeline_service_spec.rb Loading commit data...
fan_out_on_write_service_spec.rb Loading commit data...
favourite_service_spec.rb Loading commit data...
fetch_link_card_service_spec.rb Loading commit data...
fetch_oembed_service_spec.rb Loading commit data...
fetch_remote_account_service_spec.rb Loading commit data...
fetch_remote_status_service_spec.rb Loading commit data...
fetch_resource_service_spec.rb Loading commit data...
follow_service_spec.rb Loading commit data...
hashtag_query_service_spec.rb Loading commit data...
import_service_spec.rb Loading commit data...
mute_service_spec.rb Loading commit data...
notify_service_spec.rb Loading commit data...
post_status_service_spec.rb Loading commit data...
precompute_feed_service_spec.rb Loading commit data...
process_mentions_service_spec.rb Loading commit data...
reblog_service_spec.rb Loading commit data...
reject_follow_service_spec.rb Loading commit data...
remove_status_service_spec.rb Loading commit data...
report_service_spec.rb Loading commit data...
resolve_account_service_spec.rb Loading commit data...
resolve_url_service_spec.rb Loading commit data...
search_service_spec.rb Loading commit data...
suspend_account_service_spec.rb Loading commit data...
unblock_domain_service_spec.rb Loading commit data...
unblock_service_spec.rb Loading commit data...
unfollow_service_spec.rb Loading commit data...
unmute_service_spec.rb Loading commit data...
verify_link_service_spec.rb Loading commit data...