Commit 2b60c7e19de156c22f96f71d6c0dbc6487d0bace

Authored by Sergio Oliveira
1 parent 484f29e5

Using base 10 for log

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/super_archives/search_indexes.py
... ... @@ -69,7 +69,7 @@ class ThreadIndex(BaseIndex, indexes.Indexable):
69 69 def get_boost(self, obj):
70 70 boost = super(ThreadIndex, self).get_boost(obj)
71 71  
72   - if obj.score >= 20:
73   - boost = boost * math.log(obj.score, 20)
  72 + if obj.score >= 10:
  73 + boost = boost * math.log(obj.score)
74 74  
75 75 return boost
... ...