add weekly boost
This commit is contained in:
parent
7aa5cc0c4b
commit
1137a6dbb4
1 changed files with 11 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue