Add Story fields to the search index.
This commit is contained in:
parent
1a4befc540
commit
f34dc2c8f0
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue