Commit af1506b1a2b5642d58c6584a120cdde07e812bad
1 parent
6f08ff1a
Exists in
master
and in
39 other branches
Link to solr doc on date boosting
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/search/forms.py
@@ -101,6 +101,8 @@ class ColabSearchForm(SearchForm): | @@ -101,6 +101,8 @@ class ColabSearchForm(SearchForm): | ||
101 | 'q.alt': '*.*', | 101 | 'q.alt': '*.*', |
102 | 'pf': 'title^2.1 author^1.9 description^1.7', | 102 | 'pf': 'title^2.1 author^1.9 description^1.7', |
103 | 'mm': '2<70%', | 103 | 'mm': '2<70%', |
104 | + | ||
105 | + # Date boosting: http://wiki.apache.org/solr/FunctionQuery#Date_Boosting | ||
104 | 'bf': 'recip(ms(NOW/HOUR,modified),3.16e-11,1,1)^10', | 106 | 'bf': 'recip(ms(NOW/HOUR,modified),3.16e-11,1,1)^10', |
105 | } | 107 | } |
106 | 108 |