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; |
180 |
my @results; |
my @results; |
181 |
|
|
182 |
my $i = 0; |
my $i = 0; |
183 |
while ( my $hit = $hits->fetch_hit_hashref ) { |
while ( my $hit = $hits->fetch_hit ) { |
184 |
|
|
185 |
my $score = $hit->{score}; |
my $score = $hit->{score}; |
186 |
my $title = $hit->{title}; |
my $title = $hit->{title}; |
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 |
); |
); |