Commit d5d84677 authored by Andreas Wolf's avatar Andreas Wolf

Merge branch '271-comma-separated-author-names-not-showing-up-in-search' into 'develop'

Improve indexing of author if multiple value

Closes #271

See merge request !263
parents 3acb8229 fce7112d
Pipeline #2616 passed with stages
in 4 minutes and 49 seconds
......@@ -123,6 +123,10 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$documentationService = GeneralUtility::makeInstance(\T3o\TerFe2\Service\Documentation::class);
$documentationLink = $documentationService->getDocumentationLink($extension->getExtKey(), $extension->getLastVersion()->getVersionString(), true);
$document->setField('extensionDocumentationLink_stringS', $documentationLink);
// get multiple authors
$authors = GeneralUtility::trimExplode(',', $extension->getLastVersion()->getAuthor()->getName());
$document->setField('author_textWstM', $authors);
}
return $document;
......
......@@ -41,15 +41,6 @@ plugin {
}
}
author_textWstS = SOLR_CONTENT
author_textWstS {
cObject = SOLR_RELATION
cObject {
localField = last_version
foreignLabelField = author
}
}
title = SOLR_CONTENT
title {
cObject = SOLR_RELATION
......@@ -196,7 +187,7 @@ plugin {
search {
query {
// qf parameter http://wiki.apache.org/solr/DisMaxQParserPlugin#qf_.28Query_Fields.29
queryFields = extensionKey_stringS^200.0, extensionKey_textS^1.0, keywords^55.0, title^50.0, content^20.0, author_textWstS^1.0
queryFields = extensionKey_stringS^200.0, extensionKey_textS^1.0, keywords^55.0, title^50.0, content^20.0, author_textWstM^1.0
sortBy = extensionLastUpload_tDateS desc
}
}
......
Markdown is supported
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