Implemented PostgreSQL full-text search on the course table, added a tsvector generated column with GIN index, replaced the ILIKE '%query%' predicate with @@ plainto_tsquery, and added ts_rank relevance-based ordering. Removed an unused test import; entity unchanged since the column is DB-managed.#939
Closed
DevScoopee wants to merge 2 commits into
Closed
Implemented PostgreSQL full-text search on the course table, added a tsvector generated column with GIN index, replaced the ILIKE '%query%' predicate with @@ plainto_tsquery, and added ts_rank relevance-based ordering. Removed an unused test import; entity unchanged since the column is DB-managed.#939DevScoopee wants to merge 2 commits into
DevScoopee wants to merge 2 commits into
Conversation
|
@DevScoopee Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Kindly resolve conflict |
Contributor
|
Conflict not resolved |
Contributor
|
Kindly resolve conflict |
Author
|
yes please i am on it right now
…On Mon, 29 Jun 2026 at 12:04, Rukayat Zakariyau ***@***.***> wrote:
*RUKAYAT-CODER* left a comment (rinafcode/teachLink_backend#939)
<#939 (comment)>
Kindly resolve conflict
—
Reply to this email directly, view it on GitHub
<#939?email_source=notifications&email_token=BFSYCOGLJG2QIXFUWDYSTC35CKHQBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBTGQ2TKMBSGMY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4834550231>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFSYCOHYTNNZ5A5Q2LKTYW35CKHQBAVCNFSNUABFKJSXA33TNF2G64TZHM4TKOJXG4ZTCMBSHNEXG43VMU5TINZWHAZDKOBSGU3KC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BFSYCOAIRGJP4AWXHJNGUB35CKHQBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBTGQ2TKMBSGMY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/BFSYCOD44FDBFJL76GO3M3D5CKHQBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBTGQ2TKMBSGMY2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Contributor
|
Pull from main before pushing. Conflict not resolved. |
…a tsvector generated column with GIN index, replaced the ILIKE '%query%' predicate with @@ plainto_tsquery, and added ts_rank relevance-based ordering. Removed an unused test import; entity unchanged since the column is DB-managed.
A new migration (1763000000000) adds search_vector tsvector to course, generated from title and description via to_tsvector('english', ...) and indexed with GIN. SearchService.search() was rewritten to use course.search_vector @@ plainto_tsquery('english', :query) instead of the non-sargable ILIKE '%query%', enabling index scans that meet the <50ms P95 target. When no explicit sort is given and a query is present, results default to ts_rank() descending for relevance ranking. The test spec had an unused import cleaned up; its mock builder is fully compatible via chainable this returns. The entity was left unchanged since TypeORM's createQueryBuilder handles unmapped columns in raw SQL expressions.
Closes #814
…a tsvector generated column with GIN index, replaced the ILIKE '%query%' predicate with @@ plainto_tsquery, and added ts_rank relevance-based ordering. Removed an unused test import; entity unchanged since the column is DB-managed.
A new migration (1763000000000) adds search_vector tsvector to course, generated from title and description via to_tsvector('english', ...) and indexed with GIN. SearchService.search() was rewritten to use course.search_vector @@ plainto_tsquery('english', :query) instead of the non-sargable ILIKE '%query%', enabling index scans that meet the <50ms P95 target. When no explicit sort is given and a query is present, results default to ts_rank() descending for relevance ranking. The test spec had an unused import cleaned up; its mock builder is fully compatible via chainable this returns. The entity was left unchanged since TypeORM's createQueryBuilder handles unmapped columns in raw SQL expressions.
Closes #814
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new migration (1763000000000) adds search_vector tsvector to course, generated from title and description via to_tsvector('english', ...) and indexed with GIN. SearchService.search() was rewritten to use course.search_vector @@ plainto_tsquery('english', :query) instead of the non-sargable ILIKE '%query%', enabling index scans that meet the <50ms P95 target. When no explicit sort is given and a query is present, results default to ts_rank() descending for relevance ranking. The test spec had an unused import cleaned up; its mock builder is fully compatible via chainable this returns. The entity was left unchanged since TypeORM's createQueryBuilder handles unmapped columns in raw SQL expressions.
Closes #814