mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
21 lines
611 B
PHP
21 lines
611 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrIndexTest;
|
|
|
|
use SilverStripe\FullTextSearch\Solr\SolrIndex;
|
|
use SilverStripe\FullTextSearch\Tests\SearchUpdaterTest\SearchUpdaterTest_Container;
|
|
|
|
class SolrIndexTest_FakeIndex extends SolrIndex
|
|
{
|
|
public function init()
|
|
{
|
|
$this->addClass(SearchUpdaterTest_Container::class);
|
|
|
|
$this->addFilterField('Field1');
|
|
$this->addFilterField('MyDate', 'Date');
|
|
$this->addFilterField('HasOneObject.Field1');
|
|
$this->addFilterField('HasManyObjects.Field1');
|
|
$this->addFilterField('ManyManyObjects.Field1');
|
|
}
|
|
}
|