diff --git a/apps/portal/src/server/router/questions/questions-question-router.ts b/apps/portal/src/server/router/questions/questions-question-router.ts index 51e33802..e00c4ae8 100644 --- a/apps/portal/src/server/router/questions/questions-question-router.ts +++ b/apps/portal/src/server/router/questions/questions-question-router.ts @@ -235,7 +235,7 @@ export const questionsQuestionRouter = createRouter() .$queryRaw` SELECT id FROM "QuestionsQuestion" WHERE - ts_rank_cd(to_tsvector("content"), to_tsquery(${query}), 32) > 0.7 + ts_rank_cd(to_tsvector("content"), to_tsquery(${query}), 32) > 0.1 ORDER BY ts_rank_cd(to_tsvector("content"), to_tsquery('english', ${query}), 4) DESC; `; @@ -314,7 +314,7 @@ export const questionsQuestionRouter = createRouter() .$queryRaw` SELECT id FROM "QuestionsQuestion" WHERE - ts_rank_cd(to_tsvector("content"), to_tsquery(${query}), 32) > 0.7 + ts_rank_cd(to_tsvector("content"), to_tsquery(${query}), 32) > 0.1 ORDER BY ts_rank_cd(to_tsvector("content"), to_tsquery('english', ${query}), 4) DESC; `; }