fix(content-recommendation): 최신성 점수 계산 기준을 보정한다
This commit is contained in:
@@ -258,9 +258,9 @@ class DefaultAudioRecommendationQueryRepository(
|
||||
+ coalesce(l.like_count, 0) * 15.0
|
||||
+ coalesce(cm.comment_count, 0) * 15.0
|
||||
+ case
|
||||
when timestampdiff(day, c.release_date, :snapshotAt) <= 3 then 1.3
|
||||
when timestampdiff(day, c.release_date, :snapshotAt) <= 7 then 1.15
|
||||
when timestampdiff(day, c.release_date, :snapshotAt) <= 14 then 1.0
|
||||
when floor(timestampdiff(hour, c.release_date, :snapshotAt) / 24) <= 3 then 1.3
|
||||
when floor(timestampdiff(hour, c.release_date, :snapshotAt) / 24) <= 7 then 1.15
|
||||
when floor(timestampdiff(hour, c.release_date, :snapshotAt) / 24) <= 14 then 1.0
|
||||
else 0.8
|
||||
end * 35.0
|
||||
""".trimIndent()
|
||||
@@ -309,9 +309,9 @@ class DefaultAudioRecommendationQueryRepository(
|
||||
+ coalesce(l.like_count, 0) * 25.0
|
||||
+ coalesce(cm.comment_count, 0) * 20.0
|
||||
+ case
|
||||
when timestampdiff(day, c.release_date, :snapshotAt) <= 3 then 1.3
|
||||
when timestampdiff(day, c.release_date, :snapshotAt) <= 7 then 1.15
|
||||
when timestampdiff(day, c.release_date, :snapshotAt) <= 30 then 1.1
|
||||
when floor(timestampdiff(hour, c.release_date, :snapshotAt) / 24) <= 3 then 1.3
|
||||
when floor(timestampdiff(hour, c.release_date, :snapshotAt) / 24) <= 7 then 1.15
|
||||
when floor(timestampdiff(hour, c.release_date, :snapshotAt) / 24) <= 30 then 1.1
|
||||
else 1.0
|
||||
end * 10.0
|
||||
""".trimIndent()
|
||||
|
||||
Reference in New Issue
Block a user