/[Grep]/lib/Grep/Search.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.pm

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

revision 101 by dpavlin, Sat Feb 24 12:16:57 2007 UTC revision 102 by dpavlin, Sun Mar 4 22:16:23 2007 UTC
# Line 12  my $index_path = Jifty::Util->app_root . Line 12  my $index_path = Jifty::Util->app_root .
12    
13  my ( $analyzer, $store, $writer );  my ( $analyzer, $store, $writer );
14    
15  my $debug = 1;  my $debug = 0;
16  my $create;  my $create;
17    
18  sub create {  sub create {
# Line 171  sub collection { Line 171  sub collection {
171                  my $title = $doc->get("title");                  my $title = $doc->get("title");
172                  my $id = $doc->get("id");                  my $id = $doc->get("id");
173    
174                  warn "## $i $score $title\n";                  $self->log->debug("result $i $score $title");
175    
176                  my $item = Grep::Model::Item->new();                  my $item = Grep::Model::Item->new();
177                  my ($ok,$msg) = $item->load_by_cols( id => $id );                  my ($ok,$msg) = $item->load_by_cols( id => $id );
# Line 202  sub collection { Line 202  sub collection {
202  sub finish {  sub finish {
203          my $self = shift;          my $self = shift;
204          if ($writer) {          if ($writer) {
205                  warn "closing index\n";                  $self->log->debug("closing index");
206                  $writer->close;                  $writer->close;
207          }          }
208          undef $writer;          undef $writer;

Legend:
Removed from v.101  
changed lines
  Added in v.102

  ViewVC Help
Powered by ViewVC 1.1.26