use Constants qw(@SEARCH_EXCLUDE @SEARCH_INCLUDE);
use BSE::TB::Articles;
-our $VERSION = "1.005";
+our $VERSION = "1.006";
my %default_scores =
(
next unless $article->should_index;
my $section = $article->section;
my $id = $article->{id};
- my $indexas = $article->{level} > $self->{max_level} ? $article->{parentid} : $id;
+ my $indexas = $article->indexed_as;
my $sectionid = $section->{id};
eval "use $article->{generator}";
$@ and die $@;
$fields{$field} = $text;
}
- $indexer->process_article($article, $section, $indexas, \%fields);
+ $indexer->process_article($article, $section, $indexas->id, \%fields);
}
$self->vnote("f::Article scan complete");
}