From 2b60c7e19de156c22f96f71d6c0dbc6487d0bace Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 7 Nov 2013 10:43:43 -0200 Subject: [PATCH] Using base 10 for log --- src/super_archives/search_indexes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/super_archives/search_indexes.py b/src/super_archives/search_indexes.py index c208187..c79a7bc 100644 --- a/src/super_archives/search_indexes.py +++ b/src/super_archives/search_indexes.py @@ -69,7 +69,7 @@ class ThreadIndex(BaseIndex, indexes.Indexable): def get_boost(self, obj): boost = super(ThreadIndex, self).get_boost(obj) - if obj.score >= 20: - boost = boost * math.log(obj.score, 20) + if obj.score >= 10: + boost = boost * math.log(obj.score) return boost -- libgit2 0.21.2