Source of file ElementalSolrIndex.php
Size: 0,707 Bytes - Last Modified: 2021-12-24T06:44:48+00:00
/var/www/docs.ssmods.com/process/src/src/Search/ElementalSolrIndex.php
1234567891011121314151617181920212223242526272829 | <?php namespace DNADesign\Elemental\Search; use Page; use SilverStripe\FullTextSearch\Solr\SolrIndex; if (!class_exists(SolrIndex::class)) { return; } /** * Provides ability to index Elemental content for a page, so it can be returned in the context of the page * that the elements belong to * * @deprecated 4.2.0 This index will be removed from the default setup, use a custom index to replicate * the functionality */ class ElementalSolrIndex extends SolrIndex { public function init() { $this->addClass(Page::class); $this->addAllFulltextFields(); /** @see ElementalArea::getElementsForSearch */ $this->addFulltextField('ElementsForSearch'); } } |