From 0a97ae75fe0a853da8296e9b4a2df1816c834733 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Wed, 6 Nov 2013 20:59:32 -0200 Subject: [PATCH] Fixing score by newest --- src/search/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search/forms.py b/src/search/forms.py index 5d3cd97..020c7d2 100644 --- a/src/search/forms.py +++ b/src/search/forms.py @@ -95,13 +95,12 @@ class ColabSearchForm(SearchForm): q = unicodedata.normalize( 'NFKD', unicode(self.cleaned_data.get('q')) ).encode('ascii', 'ignore') - sqs = sqs.auto_query(q) sqs = sqs.filter(content=AltParser( 'dismax', q, pf='title^2.1 author^1.9 description^1.7', mm='2<70%', - b='recip(ms((NOW/HOUR),(modified/HOUR)),3.16e-11,1,1)', + bf='recip(ms(NOW/DAY,modified),3.16e-11,1,1)^10', )) if self.cleaned_data['type']: -- libgit2 0.21.2