I don't know of such a script, but you could try the following untested code with PhpDig version 1.8.8 RC1 so that word weight is bumped on each reindex according to what is in the logs table.
In robot_functions.php find:
Code:
//New index record
if ($it == 0) {
$sqlvalues .= "($spider_id,$key_id,$value)";
$it = 1;
}
else {
$sqlvalues .= ",\n($spider_id,$key_id,$value)";
}
And replace with the following:
Code:
//New index record
if ($it == 0) {
$sqlvalues .= "($spider_id,$key_id,$value)";
$it = 1;
}
else {
$weight_select = "SELECT COUNT(*) FROM ".PHPDIG_DB_PREFIX."logs WHERE l_includes = '".$key."'";
$weight_query = mysql_query($weight_select,$id_connect);
$weight_bump = mysql_fetch_row($weight_query);
$weightbump = intval($weight_bump[0]);
$value += $weightbump;
$sqlvalues .= ",\n($spider_id,$key_id,$value)";
}