retrospring/spec/helpers
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
..
application_helper Use /@username for profile paths 2022-07-23 09:11:32 +02:00
social_helper add sharing to telegram 2023-02-19 20:58:47 +01:00
application_helper_spec.rb Adapt tests to match new counter methods 2023-03-07 19:14:14 +01:00
bootstrap_helper_spec.rb Fix lint errors 2023-08-18 19:43:59 +02:00
feedback_helper_spec.rb Fix Ruby codestyle 2022-01-22 22:50:32 +01:00
markdown_helper_spec.rb Hard wrap in question markdown 2023-02-15 23:52:10 +01:00
search_helper_spec.rb attempt to add pg_search 2023-10-22 18:13:26 +02:00
social_helper_spec.rb Fix rubocop nits 2023-10-17 20:14:28 +02:00
theme_helper_spec.rb Add tests for new theme helper functionality 2023-01-12 21:03:44 +01:00
user_helper_spec.rb Update tests for user_screen_name to include target attribute 2023-05-09 23:08:35 +02:00