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
|
|
@ -1,6 +1,7 @@
|
||||||
7.7.17
|
7.7.17
|
||||||
- fixed #10654: Story Archive: Search not working properly
|
- fixed #10654: Story Archive: Search not working properly
|
||||||
- fixed search indexer concatenates keywords to content.
|
- fixed search indexer concatenates keywords to content.
|
||||||
|
- fixed Index Story fields for Search (headline, subtitle, location, byline, highlights, story)
|
||||||
|
|
||||||
7.7.16
|
7.7.16
|
||||||
- fixed #10590: Session::DateTime->secondsToInterval doesn't allow 7 weeks
|
- fixed #10590: Session::DateTime->secondsToInterval doesn't allow 7 weeks
|
||||||
|
|
|
||||||
|
|
@ -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 ( )
|
=head2 prepareView ( )
|
||||||
|
|
||||||
Extent the default method to handle the case when a Story Topic is rendering
|
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