/[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 153 by dpavlin, Sun Jun 10 11:52:24 2007 UTC revision 169 by dpavlin, Wed Jul 4 09:58:06 2007 UTC
# Line 103  sub add { Line 103  sub add {
103    
104                  next if (! defined($v) || $v eq '');                  next if (! defined($v) || $v eq '');
105    
106                  $v =~ s/<[^>]+>/ /gs;                  eval { $v =~ s/<[^>]+>/ /gs; };
107                    if ($@) {
108                            Jifty->log->error("can't strip html from $c in item ", $i->id);
109                            next;
110                    }
111    
112                  if ( defined( $pk->{$c} ) ) {                  if ( defined( $pk->{$c} ) ) {
113                          $doc->{ $c } = $v;                          $doc->{ $c } = $v;
# Line 274  our %fields = ( Line 278  our %fields = (
278          summary                 => 'KinoSearch::Schema::FieldSpec',          summary                 => 'KinoSearch::Schema::FieldSpec',
279          category                => 'KinoSearch::Schema::FieldSpec',          category                => 'KinoSearch::Schema::FieldSpec',
280          author                  => 'KinoSearch::Schema::FieldSpec',          author                  => 'KinoSearch::Schema::FieldSpec',
281          issued                  => 'Grep::Search::KeywordField',          created_on              => 'Grep::Search::KeywordField',
282          modified                => 'Grep::Search::KeywordField',          last_update             => 'Grep::Search::KeywordField',
283    
284          _owner_id               => 'Grep::Search::KeywordField',          _owner_id               => 'Grep::Search::KeywordField',
285  );  );

Legend:
Removed from v.153  
changed lines
  Added in v.169

  ViewVC Help
Powered by ViewVC 1.1.26