|
|
|
@ -296,7 +296,7 @@ export const questionsQuestionRouter = createRouter()
|
|
|
|
|
SELECT id FROM "QuestionsQuestion"
|
|
|
|
|
WHERE
|
|
|
|
|
to_tsvector("content") @@ to_tsquery('english', ${query})
|
|
|
|
|
AND ts_rank_cd(to_tsvector("content"), to_tsquery('english', ${query}), 32) > 0.6
|
|
|
|
|
AND ts_rank_cd(to_tsvector("content"), to_tsquery('english', ${query}), 32) > 0.8
|
|
|
|
|
ORDER BY ts_rank_cd(to_tsvector("content"), to_tsquery('english', ${query}), 32) DESC;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|