Add Story fields to the search index.

This commit is contained in:
Colin Kuskie 2009-07-24 18:15:18 +00:00
parent 1a4befc540
commit f34dc2c8f0
2 changed files with 15 additions and 0 deletions

View file

@ -570,6 +570,20 @@ sub getRssData {
#-------------------------------------------------------------------
=head2 indexContent ( )
Extend the base class to index Story properties like headline, byline, etc.
=cut
sub indexContent {
my $self = shift;
my $indexer = $self->next::method();
$indexer->addKeywords($self->get('headline'), $self->get('subtitle'), $self->get('location'), $self->get('highlights'), $self->get('byline'), $self->get('story'), );
}
#-------------------------------------------------------------------
=head2 prepareView ( )
Extent the default method to handle the case when a Story Topic is rendering