Commit 90a41f25df96fca7ebb0fa53ed17b96a549629e3
Exists in
master
and in
13 other branches
Merge branch 'master' into fixing_by_stmts
Showing
2 changed files
with
3 additions
and
0 deletions
Show diff stats
src/search/forms.py
... | ... | @@ -101,6 +101,8 @@ class ColabSearchForm(SearchForm): |
101 | 101 | 'q.alt': '*.*', |
102 | 102 | 'pf': 'title^2.1 author^1.9 description^1.7', |
103 | 103 | 'mm': '2<70%', |
104 | + | |
105 | + # Date boosting: http://wiki.apache.org/solr/FunctionQuery#Date_Boosting | |
104 | 106 | 'bf': 'recip(ms(NOW/HOUR,modified),3.16e-11,1,1)^10', |
105 | 107 | } |
106 | 108 | ... | ... |
src/super_archives/views.py
... | ... | @@ -74,6 +74,7 @@ class ThreadView(View): |
74 | 74 | raise http.Http404 |
75 | 75 | |
76 | 76 | data = { |
77 | + 'in_reply_to': thread.message_set.last().message_id, | |
77 | 78 | 'email_from': request.user.email, |
78 | 79 | 'name_from': request.user.get_full_name(), |
79 | 80 | 'subject': thread.message_set.first().subject_clean, | ... | ... |