nyastodon/spec
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
fabricators Remove redundant code in AtomSerializer and spec (#3528) 2017-06-03 20:51:08 +02:00
features Add scenarios for log in (#3497) 2017-06-01 17:25:59 +02:00
fixtures A minor change for ProviderDiscovery and spec (#3543) 2017-06-04 14:59:40 +02:00
helpers Hold value of I18n.locale with ApplicationHelperSpec (#3474) 2017-05-31 17:09:28 +02:00
javascript Add quotes ESLint rules (#3602) 2017-06-06 03:56:36 +02:00
lib Introduce StatusThreadingConcern (#3490) 2017-06-05 16:07:44 +02:00
mailers Misc spec coverage improvements (#2821) 2017-05-05 14:56:00 -04: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 Use around hook to restore context in InstancePresenter spec (#3430) 2017-05-30 09:03:35 -04:00
requests Remove the react-rails gem (#2801) 2017-05-04 23:45:18 +02:00
routing Spec coverage and refactor for the api/v1/accounts controllers (#3451) 2017-05-31 21:36:24 +02:00
services Don't follow account if it's already followed (#3575) 2017-06-05 03:24:18 +02:00
support Spec ScopedSettings (#3559) 2017-06-04 17:07:39 +02:00
views Update rails to version 5.0.3 (#3054) 2017-05-14 16:30:14 +02:00
workers Specs for cleanup workers (#3235) 2017-05-22 19:36:21 +02:00
rails_helper.rb Disable sidekiq logging in test mode (#2962) 2017-05-10 16:16:42 +02:00
spec_helper.rb Add more tests for AtomSerializer (#2096) 2017-04-18 22:30:17 +02:00