34 |
create => 1, |
create => 1, |
35 |
label => 'Grep index', |
label => 'Grep index', |
36 |
croak_on_error => 1, |
croak_on_error => 1, |
37 |
# debug => 1, |
debug => 1, |
38 |
); |
); |
39 |
|
|
40 |
return $node; |
return $node; |
88 |
return sub { |
return sub { |
89 |
return if $i++ >= $nres->doc_num; |
return if $i++ >= $nres->doc_num; |
90 |
warn "# get_doc($i)\n"; |
warn "# get_doc($i)\n"; |
91 |
my $rdoc = $nres->get_doc($i); |
my $rdoc = $nres->get_doc($i) or return; |
92 |
return { |
return { |
93 |
id => $rdoc->attr('id'), |
id => $rdoc->attr('id'), |
94 |
title => $rdoc->attr('title'), |
title => $rdoc->attr('title'), |
95 |
score => $rdoc->score, |
score => $rdoc->attr('#nodescore'), |
96 |
}; |
}; |
97 |
}; |
}; |
98 |
|
|