including page owner attribute in search index

Permalink
the site I'm currently working on has a news section. Each news story has an author. I associate an author to a story assigning a user as the page owner of the news story. The Authors full name is an attribute of the user.

Is it possible to include the authors full name in the site search index, so that when a user searches for the author's name, pages owned by them show up in the search results?

I've already included the attribute in the search index, and re-run the index job, but it's still not showing up. so I presume I'll need to modify the search index job to achieve this?

 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
You can write a custom code for this.
Loader::model('attribute/categories/collection');
$ak = CollectionAttributeKey::getByHandle('attribute_handle');
$value = $cobj->getCollectionAttributeValue($ak);


Rony
kirkroberts replied on at Permalink Reply
kirkroberts
Excuse the gravedigging on a old thread, please, but it seems silly to start a new one with the same topic.

The problem seems to be that the Page Owner attribute is not part of the CollectionSearchIndexAttributes table. I don't know how to add it, or if there is another solution... just was having the same issue and thought I'd chime in to bump the thread up.