mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
18 lines
405 B
PHP
18 lines
405 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrIndexSubsitesTest;
|
|
|
|
use SilverStripe\FullTextSearch\Solr\SolrIndex;
|
|
use SilverStripe\Assets\File;
|
|
use SilverStripe\CMS\Model\SiteTree;
|
|
|
|
class SolrIndexSubsitesTest_Index extends SolrIndex
|
|
{
|
|
public function init()
|
|
{
|
|
$this->addClass(File::class);
|
|
$this->addClass(SiteTree::class);
|
|
$this->addAllFulltextFields();
|
|
}
|
|
}
|