Commit 98b37c05 authored by Thomas Löffler's avatar Thomas Löffler

Add composer info to Solr

parent 0c90209e
Pipeline #4407 passed with stages
in 7 minutes and 41 seconds
......@@ -101,6 +101,14 @@ class TerIndexer extends \ApacheSolrForTypo3\Solr\IndexQueue\Indexer
$document->setField('insecure_boolS', $extension->getLastVersion()->getReviewState() === -1);
$document->setField('outdated_boolS', $extension->getLastVersion()->getReviewState() === -2);
// composer support
$document->setField('supportsComposer_boolS', false);
$document->setField('composerName_stringS', '');
if ($extension->getLastVersion()->getComposerName()) {
$document->setField('supportsComposer_boolS', true);
$document->setField('composerName_stringS', $extension->getLastVersion()->getComposerName());
}
// does this extension supports different versions?
// @todo: use JSON with all versions to get them
$document->setField('supports7_boolS', false);
......
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