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
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
..
controllers Bump faker from 1.9.6 to 2.1.0 and update faker api (#11489) 6 years ago
fabricators Bump faker from 1.9.6 to 2.1.0 and update faker api (#11489) 6 years ago
features Change unconfirmed user login behaviour (#11375) 6 years ago
fixtures Remove Salmon and PubSubHubbub (#11205) 6 years ago
helpers Remove Atom feeds and old URLs in the form of `GET /:username/updates/:id` (#11247) 6 years ago
lib Fix boosting & unboosting preventing a boost from appearing in the TL (#11405) 6 years ago
mailers Add invite request to pending account notification e-mail (#10528) 6 years ago
models Bump faker from 1.9.6 to 2.1.0 and update faker api (#11489) 6 years ago
policies Change admin UI for hashtags and add back whitelisted trends (#11490) 6 years ago
presenters Admission-based registrations mode (#10250) 6 years ago
requests Remove XML version of Webfinger and remove links to Atom feeds (#11460) 6 years ago
routing
serializers/activitypub Fix account URI in UpdatePollSerializer (#11194) 6 years ago
services Add more accurate account search (#11537) 6 years ago
support
validators Change admin UI for hashtags and add back whitelisted trends (#11490) 6 years ago
views Remove Atom feeds and old URLs in the form of `GET /:username/updates/:id` (#11247) 6 years ago
workers Add domain block notes (#11515) 6 years ago
rails_helper.rb Disable Same-Site cookie implementation to fix SSO issues on WebKit browsers (#9819) 6 years ago
spec_helper.rb Add ActivityPub actor representing the entire server (#11321) 6 years ago