--- Webpacus/lib/Webpacus/Model/WebPAC.pm 2006/03/12 21:50:26 420 +++ Webpacus/lib/Webpacus/Model/WebPAC.pm 2006/03/12 22:34:53 421 @@ -250,7 +250,7 @@ $log->debug( sprintf("search took %.6fs and returned $hits hits.", $times->{est}) ); $self->{hints} = $result->{hints}; - $log->dumper($self->{hints}, 'original hints' ); + #$log->dumper($self->{hints}, 'original hints' ); # # fetch results @@ -355,6 +355,8 @@ while (my ($key,$val) = each %{ $self->{hints} }) { + #$self->{log}->debug("current hint $key = $val"); + if ($key =~ m/^(?:HITS*|TIME|DOCNUM|WORDNUM)$/) { $hints->{ lc($key) } = $val; } elsif ($key =~ m/^HINT#/) { @@ -364,8 +366,13 @@ my ($url,undef,undef,undef,undef,undef,$results) = split(/\t/,$val,7); if ($url =~ m#/node/(.+)$#) { $hints->{node}->{$1} = $results; + } else { + $self->{log}->debug("url $url doesn't have /node/ in it!"); } + } else { + $self->{log}->debug("unknown hint $key = $val"); } + } $self->{log}->dumper($hints, 'model hints' );