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

@ -1,6 +1,7 @@
7.7.17
- fixed #10654: Story Archive: Search not working properly
- fixed search indexer concatenates keywords to content.
- fixed Index Story fields for Search (headline, subtitle, location, byline, highlights, story)
7.7.16
- fixed #10590: Session::DateTime->secondsToInterval doesn't allow 7 weeks

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