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/models
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
5 years ago
..
admin Fix option to send e-mail notification about account action always being true (#11242) 6 years ago
concerns Include max image dimensions in error (#11552) 5 years ago
form Add trends UI with admin and user settings (#11502) 6 years ago
web Do no retry web push workers if the server returns a 4xx response (#9434) 6 years ago
account.rb Add more accurate account search (#11537) 5 years ago
account_conversation.rb Fix crash when conversations have no valid participants (#10078) 6 years ago
account_domain_block.rb Fix crash when saving invalid domain name (#11528) 5 years ago
account_filter.rb Add moderation API (#9387) 6 years ago
account_identity_proof.rb Fix Keybase verification using wrong domain for remote accounts (#10547) 6 years ago
account_moderation_note.rb Update dependencies for Ruby (2018-04-23) (#7237) 7 years ago
account_pin.rb Add API endpoint to list featured accounts (fixes #8315) (#8317) 6 years ago
account_stat.rb Add more accurate account search (#11537) 5 years ago
account_tag_stat.rb Add profile directory (#9427) 6 years ago
account_warning.rb Add moderation warnings (#9519) 6 years ago
account_warning_preset.rb Add moderation warnings (#9519) 6 years ago
admin.rb Add logging of admin actions (#5757) 7 years ago
application_record.rb Change admin UI for hashtags and add back whitelisted trends (#11490) 6 years ago
backup.rb Update dependencies for Ruby (2018-04-23) (#7237) 7 years ago
block.rb Store URIs of follows, follow requests and blocks for ActivityPub (#7160) 7 years ago
context.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 8 years ago
conversation.rb Revert "Remove conversation URI (#11423)" (#11424) 6 years ago
conversation_mute.rb Update dependencies for Ruby (2018-04-23) (#7237) 7 years ago
custom_emoji.rb Add GIF and WebP support for custom emojis (#11519) 5 years ago
custom_emoji_category.rb Add categories for custom emojis (#11196) 6 years ago
custom_emoji_filter.rb Make custom emoji domains case insensitive #9351 (#9474) 6 years ago
custom_filter.rb Fix expiration date of filters being set to “Never” when editing them (#11204) 6 years ago
domain_allow.rb Fix crash when saving invalid domain name (#11528) 5 years ago
domain_block.rb Fix crash when saving invalid domain name (#11528) 5 years ago
email_domain_block.rb Fix crash when saving invalid domain name (#11528) 5 years ago
export.rb Export and import show_reblogs together with following list (#10495) 6 years ago
favourite.rb Fix error when trying to update counters for statuses that are gone (#8251) 6 years ago
featured_tag.rb Fix featured tags not finding the right tag on save (#11504) 5 years ago
feed.rb Create Redisable#redis (#9633) 6 years ago
follow.rb Extract counters from accounts table to account_stats table (#9295) 6 years ago
follow_request.rb Fix MergeWorker being queued for remote users (#10355) 6 years ago
home_feed.rb Support min_id-based pagination in REST API (#8736) 6 years ago
identity.rb Change identities id column to a bigint (#9371) 6 years ago
import.rb Add option to overwrite imported data (#9962) 6 years ago
instance.rb Add whitelist mode (#11291) 6 years ago
instance_filter.rb Add whitelist mode (#11291) 6 years ago
invite.rb Fix invites not being disabled upon account suspension (#11412) 6 years ago
invite_filter.rb Add invite filter (#5862) 7 years ago
list.rb Update dependencies for Ruby (2018-04-23) (#7237) 7 years ago
list_account.rb Update dependencies for Ruby (2018-04-23) (#7237) 7 years ago
list_feed.rb Lists (#5703) 7 years ago
media_attachment.rb Remove timestamps from converted images to make them deterministic (#11408) 6 years ago
mention.rb Improve support for aspects/circles (#8950) 6 years ago
mute.rb Update dependencies for Ruby (2018-04-23) (#7237) 7 years ago
notification.rb Add `account_id` param to `GET /api/v1/notifications` (#10796) 6 years ago
poll.rb Add support for custom emojis in poll options (#10322) 6 years ago
poll_vote.rb Add optimistic lock to avoid race conditions when handling votes (#10196) 6 years ago
preview_card.rb Add WebP support (#9879) 6 years ago
relay.rb Fix relay enabling/disabling not resetting inbox availability status (#10048) 6 years ago
remote_follow.rb Fix acct URIs with IDN domains not being resolved (#11520) 5 years ago
report.rb Add moderation API (#9387) 6 years ago
report_filter.rb Add moderation API (#9387) 6 years ago
report_note.rb Fix scope latest of ReportNote (#9630) 6 years ago
scheduled_status.rb Fix deleting a scheduled status immediately deleting media attachments (#9728) 6 years ago
search.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 8 years ago
session_activation.rb Update dependencies for Ruby (2018-04-23) (#7237) 7 years ago
setting.rb Remove intermediary arrays when creating hash maps from results (#9291) 6 years ago
site_upload.rb Improvements to image upload validation and creation (#10431) 6 years ago
status.rb Fix Status.remote scope matching *all* statuses (#11265) 6 years ago
status_pin.rb Update dependencies for Ruby (2018-04-23) (#7237) 7 years ago
status_stat.rb Reset status cache when status_stat or media_attachment updates (#9119) 6 years ago
tag.rb Fix trending tags returning less items than requested sometimes (#11513) 5 years ago
tombstone.rb Record deleted(by mod) status to prevent re-appear (#10732) 6 years ago
trending_tags.rb Fix weekly usage not being displayed correctly in hashtag admin UI (#11524) 5 years ago
user.rb Add trends UI with admin and user settings (#11502) 6 years ago
user_invite_request.rb Add "why do you want to join" field to invite requests (#10524) 6 years ago
web.rb Add extended about page stub 8 years ago