--- lib/Grep/Search/Estraier.pm 2008/05/23 21:23:44 191 +++ lib/Grep/Search/Estraier.pm 2008/05/23 21:52:06 192 @@ -34,7 +34,7 @@ create => 1, label => 'Grep index', croak_on_error => 1, -# debug => 1, + debug => 1, ); return $node; @@ -88,11 +88,11 @@ return sub { return if $i++ >= $nres->doc_num; warn "# get_doc($i)\n"; - my $rdoc = $nres->get_doc($i); + my $rdoc = $nres->get_doc($i) or return; return { id => $rdoc->attr('id'), title => $rdoc->attr('title'), - score => $rdoc->score, + score => $rdoc->attr('#nodescore'), }; };