Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For both 7.x-1.x and 6.x-3.x, the changed boost uses the wrong field.
// Boost for a more recent comment or node edit.
list($changed_steepness, $changed_boost) = explode(':', $changed_settings);
if ($changed_boost) {
$ab = 4 / $changed_steepness;
$params['bf'][] = "recip(ms(NOW,ds_created),3.16e-11,$ab,$ab)^$changed_boost";
}
So the changed date boost gets applied to the creation date field.
Comment | File | Size | Author |
---|---|---|---|
#1 | changed-boost-1937598-D7-1.patch | 637 bytes | kevin.dutra |
#1 | changed-boost-1937598-D6-1.patch | 652 bytes | kevin.dutra |
Comments
Comment #1
kevin.dutra CreditAttribution: kevin.dutra commentedHere are corresponding patches for both versions.
Comment #2
David_Rothstein CreditAttribution: David_Rothstein commentedTested the Drupal 7 patch and it seems to work correctly. (I didn't try the Drupal 6 version.)
Comment #3
pwolanin CreditAttribution: pwolanin commentedCommitted to 7 and 6. Thanks.