/[Grep]/lib/Grep/Search/Estraier.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Grep/Search/Estraier.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 191 by dpavlin, Fri May 23 21:23:44 2008 UTC revision 192 by dpavlin, Fri May 23 21:52:06 2008 UTC
# Line 34  sub node { Line 34  sub node {
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;
# Line 88  sub search { Line 88  sub search {
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    

Legend:
Removed from v.191  
changed lines
  Added in v.192

  ViewVC Help
Powered by ViewVC 1.1.26