/[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 111 by dpavlin, Wed Mar 14 20:02:19 2007 UTC revision 112 by dpavlin, Wed Mar 14 21:10:53 2007 UTC
# Line 2  package Grep::Search; Line 2  package Grep::Search;
2    
3  use strict;  use strict;
4  use warnings;  use warnings;
5  use base qw( Class::Accessor Jifty::Object );  use base qw( Class::Accessor );
6  Grep::Search->mk_accessors( qw( analyzer store writer create index_path ) );  Grep::Search->mk_accessors( qw( analyzer store writer create index_path ) );
7    
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
# Line 23  Grep::Search - full text search Line 23  Grep::Search - full text search
23    
24  =cut  =cut
25    
26    sub log { Jifty->web->log }
27    
28  sub new {  sub new {
29          my $class = shift;                  my $class = shift;        
30          my $self = $class->SUPER::new(@_);          my $self = $class->SUPER::new(@_);
# Line 48  sub new { Line 50  sub new {
50          return $self;          return $self;
51  }  }
52    
   
53  =head2 add  =head2 add
54    
55    $search->add( $record, $owner_id );    $search->add( $record, $owner_id );
# Line 200  sub finish { Line 201  sub finish {
201                  $self->writer->close;                  $self->writer->close;
202          }          }
203    
         $self->writer( undef );  
         $self->store( undef );  
         $self->create( undef );  
         $self->analyzer( undef );  
   
204          $self->log->debug("finish");          $self->log->debug("finish");
205    
206            undef $self;
207    
208          return;          return;
209  }  }
210    

Legend:
Removed from v.111  
changed lines
  Added in v.112

  ViewVC Help
Powered by ViewVC 1.1.26