mastodon/app
unarist 004672aa6c Fix tag search order and not to use tsvector (#3611)
* Sort results by the name
* Switch search method to simple `LIKE` matching instead of tsvector/tsquery

Previously we used scores from ts_rank_cd() to sort results, but it didn't work
because the function returns same score for all results. It's not for calculate
similarity of single words. Sometimes this bug even push out exact matching tag
from results.

Additionally, PostgreSQL supports prefix searching with standard btree index.
Using it offers simpler code, but also less index size and some speed.
2017-06-06 16:07:06 +02:00
..
controllers Redirect to streaming_api_base_url (#3579) 2017-06-05 12:09:29 +02:00
helpers Resolve custom application stylesheet with Webpack (#3373) 2017-06-01 20:56:32 +02:00
javascript Improve ESLint rules for JSX (#3608) 2017-06-06 13:20:07 +02:00
lib Introduce StatusThreadingConcern (#3490) 2017-06-05 16:07:44 +02:00
mailers Remove unnecessary .keep files (#2976) 2017-05-11 01:45:42 +02:00
models Fix tag search order and not to use tsvector (#3611) 2017-06-06 16:07:06 +02:00
policies Add status destroy authorization to policy (#3453) 2017-05-30 22:56:31 +02:00
presenters Bump version, improve how version is stored for better commit history (#2526) 2017-04-27 15:22:19 +02:00
services Try fixing ThreadResolveWorker calls (#3599) 2017-06-06 00:09:14 +02:00
validators Added support for configurable reserved usernames (fix of #1382) (#3566) 2017-06-05 01:03:45 +02:00
views Add streaming_api_base_url to /api/v1/instance (#3556) 2017-06-05 16:37:44 +02:00
workers change sidekiq queueing to bulk push (#3536) 2017-06-04 00:11:15 +02:00