Commit a28798e4 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

Merge branch '518-filter-for-distributions' into 'develop'

Resolve "Filter for distributions"

Closes #518

See merge request !662
parents 7679f753 399f9563
Pipeline #11565 passed with stages
in 7 minutes and 32 seconds
......@@ -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