[questions][chore] increase threshhold

pull/478/head
hpkoh 3 years ago
parent 15d936c445
commit d83c3c430d

@ -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;
`;

Loading…
Cancel
Save