add weekly boost

This commit is contained in:
Niko Storni 2019-12-02 18:52:56 +01:00
parent 7aa5cc0c4b
commit 1137a6dbb4

View file

@ -91,6 +91,17 @@ function getResults (input) {
// Remove if you want to exclude old posts
'weight': 1,
},
{
// Published this week get a big boost
'weight': 80,
'gauss' : {
'transaction_time': { // <- Change to your date field name
'origin': Date.now(), // Change to current date
'scale' : '7d',
'decay' : 0.5,
},
},
},
{
// Published this month get a big boost
'weight': 50,