COMPONENT FLAGS

A component can have a different flags in it's static settings (getSettings function). The main advantage of those flags is that they are static and so can be cached for efficient usage.

Example:

public static function getSettings()
{
    $ret = parent::getSettings();
    ...
    $ret['flags']['hasFulltext'] = true;
    return $ret;
}

This is a list of available component flags:

Flags in Detail

hasFulltext-Flag:

Return an array of keys like defined in for example schema.xml of your solr config.

Implement function in Component.php:

public function getFulltextContent()
{
    $ret = array();
    $ret['type'] = 'publicdownloads';
    $ret['title'] = $this->getData()->getRow()->title;
    $ret['contenth2'] = $this->getData()->getRow()->teaser;
    return $ret;
}