Commit acfcc998 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Add company to author for indexing

parent c755d1df
Pipeline #3013 passed with stages
in 4 minutes and 6 seconds
......@@ -128,6 +128,10 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$authors = [];
if ($extension->getLastVersion() && $extension->getLastVersion()->getAuthor()) {
$authors = GeneralUtility::trimExplode(',', $extension->getLastVersion()->getAuthor()->getName());
if ($extension->getLastVersion()->getAuthor()->getCompany()) {
// Add company name to author
$authors[] = $extension->getLastVersion()->getAuthor()->getCompany();
}
}
$document->setField('author_textWstM', $authors);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment