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

Add distribution facet for filter

parent 7679f753
Pipeline #11554 passed with stages
in 6 minutes and 1 second
......@@ -100,6 +100,8 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$document->setField('extensionLastUpload_intS', $extension->getLastVersion()->getUploadDate());
$document->setField('extensionLastUpload_tDateS', date('Y-m-d\TH:i:s\Z', $extension->getLastVersion()->getUploadDate()));
$document->setField('extensionDownloads_intS', $extension->getDownloads());
$document->setField('extensionCategory_stringS', $extension->getLastVersion()->getEmCategory());
$document->setField('distribution_boolS', $extension->getLastVersion()->getEmCategory() === 'distribution');
$typo3Dependency = $this->getDependencyVersionForPackage($extension, 'typo3');
$document->setField('extensionMinTYPO3Version_tIntS', $typo3Dependency['minimum']);
......
......@@ -25,6 +25,22 @@ plugin.tx_solr {
manualSortOrder = 10 LTS, 9 LTS, 8 LTS, 7 LTS, 6.2 LTS
}
distribution {
label = Distribution
field = distribution_boolS
partialName = OptionsComposer
itemClass = primary
excludeValues = 0
renderingInstruction = CASE
renderingInstruction {
key.field = optionValue
1 = TEXT
1.value = Distribution
}
}
composer {
label = Composer support
field = supportsComposer_boolS
......
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