Fix User search.
authorlain <lain@soykaf.club>
Wed, 16 May 2018 15:55:20 +0000 (17:55 +0200)
committerlain <lain@soykaf.club>
Wed, 16 May 2018 15:55:20 +0000 (17:55 +0200)
commit1d4bbec6b3239bb83b500a6a90e6686cb682cfac
tree784685762399e4e2d2e630a2f20ece05b91b6809
parent2e9aa16b862fac043a5c1a538fc6eacdaa7ec56f
Fix User search.

Now uses a trigram based search. This is a lot faster and gives better
results. Closes #185.
lib/mix/tasks/sample_psql.eex
lib/pleroma/user.ex
priv/repo/migrations/20180516144508_add_trigram_extension.exs [new file with mode: 0644]
priv/repo/migrations/20180516154905_create_user_trigram_index.exs [new file with mode: 0644]
test/web/mastodon_api/mastodon_api_controller_test.exs