retrospring/app/models
Georg Gadinger c14bae74d5 attempt to add pg_search
this commit is an attempt at building a search functionality using only
the stuff provided by postgresql

it is, unfortunately, painfully slow:

    PgSearch::Document Load (7869.1ms)  SELECT "pg_search_documents".* FROM "pg_search_documents" INNER JOIN (SELECT "pg_search_documents"."id" AS pg_search_id, (ts_rank((to_tsvector('simple', coalesce("pg_search_documents"."content"::text, ''))), (to_tsquery('simple', ''' ' || 'awoo' || ' ''')), 0)) AS rank FROM "pg_search_documents" WHERE ((to_tsvector('simple', coalesce("pg_search_documents"."content"::text, ''))) @@ (to_tsquery('simple', ''' ' || 'awoo' || ' ''')))) AS pg_search_ce9b9dd18c5c0023f2116f ON "pg_search_documents"."id" = pg_search_ce9b9dd18c5c0023f2116f.pg_search_id ORDER BY pg_search_ce9b9dd18c5c0023f2116f.rank DESC, "pg_search_documents"."id" ASC LIMIT $1  [["LIMIT", 10]]
2023-10-22 18:13:26 +02:00
..
answer filter out non-anon questions from blocked/muted users in public timeline 2023-03-26 18:28:19 +02:00
appendable Fix CommentSmile notification type not being returned 2022-07-22 16:52:42 +02:00
concerns Use cursored pagination, remove WillPaginate 2020-04-20 23:13:24 +02:00
list filter out non-anon questions from blocked/muted users in list timeline 2023-03-26 18:28:19 +02:00
notification remove expired service connection notifications 2023-02-12 19:26:31 +01:00
question filter out non-anon questions from blocked/muted users in questions view 2023-03-26 18:28:19 +02:00
relationships Add mute relationship and user methods 2023-01-01 22:42:50 +01:00
reports added moderation models 2014-12-27 14:35:09 +01:00
user Remove superfluous rubocop:disable comments 2023-10-15 10:42:58 +02:00
.keep first commit 2014-08-01 11:23:47 +02:00
announcement.rb Add announcements to the top of the application template 2020-04-19 21:38:21 +01:00
anonymous_block.rb Add target_user field to anonymous blocks 2022-12-28 00:10:59 +01:00
answer.rb attempt to add pg_search 2023-10-22 18:13:26 +02:00
appendable.rb Create Appendable model 2022-07-05 23:23:37 +02:00
application_record.rb Upgrade to Rails 5 2020-04-19 00:59:22 +02:00
comment.rb Fix remaining lint errors 2023-05-05 16:01:40 +02:00
inbox.rb appease the paw patrol 2023-10-18 21:57:09 +02:00
list.rb Appease the dog overlords 2022-07-17 09:40:34 +02:00
list_member.rb Rename Groups to Lists 2020-05-25 18:04:54 +02:00
mute_rule.rb Use length validation instead of presence for MuteRule 2023-10-15 10:16:21 +02:00
notification.rb fix deletion of notification entries when deleting a user 2023-10-18 22:13:25 +02:00
profile.rb Respect long question setting in frontend 2023-01-08 17:12:46 +01:00
question.rb attempt to add pg_search 2023-10-22 18:13:26 +02:00
relationship.rb Make relationships polymorphic 2022-01-23 16:48:53 +01:00
report.rb Clean up User model 2023-01-02 11:31:27 +01:00
role.rb Use Rolify for admin and moderator roles 2020-04-19 22:35:58 +02:00
subscription.rb Fix lint errors 2023-08-18 19:43:59 +02:00
theme.rb Adjust theme-color for mobile layout 2021-08-12 00:37:47 +02:00
totp_recovery_code.rb Remove TotpRecoveryCode.remove_all_for(user) method 2020-11-15 22:09:27 +01:00
user.rb Remove superfluous rubocop:disable comments 2023-10-15 10:42:58 +02:00
user_ban.rb Highlight current ban 2022-07-02 17:08:44 +02:00
web_push_subscription.rb Track failures on Web Push subscriptions 2023-01-02 11:51:46 +01:00