diff --git a/src/server/services/story/ranking/index.ts b/src/server/services/story/ranking/index.ts index f9f2d2ff..472a7cb5 100644 --- a/src/server/services/story/ranking/index.ts +++ b/src/server/services/story/ranking/index.ts @@ -50,11 +50,11 @@ export const getStoriesRecommended = async ( (story.publishedAt ? now - story.publishedAt.getTime() : 0) + ONE_DAY; const score = - ((Math.pow(correctSolutionsLength, 0.5) + 1) * - Math.pow(Math.max(total, 0) + 1, 0.8) * - (Math.pow(questionLogsLength, 0.5) + 1) * + ((Math.pow(Math.max(correctSolutionsLength, 1), 0.6) + 1) * + Math.pow(Math.max(total, 1), 0.9) * + Math.pow(Math.max(questionLogsLength, 1), 0.3) * Math.pow(questionExamplesLength + 1, 0.3) * - Math.pow(Math.random(), 2)) / + Math.pow(Math.random(), 2.2)) / Math.pow(timeFromPublished, 0.5); return {