2017-04-21 03:18:37 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrIndexTest;
|
|
|
|
|
|
|
|
use SilverStripe\FullTextSearch\Solr\SolrIndex;
|
2017-04-26 12:52:20 +02:00
|
|
|
use SilverStripe\FullTextSearch\Tests\SearchUpdaterTest\SearchUpdaterTest_Container;
|
2017-04-21 03:18:37 +02:00
|
|
|
|
|
|
|
class SolrIndexTest_FakeIndex extends SolrIndex
|
|
|
|
{
|
|
|
|
public function init()
|
|
|
|
{
|
2017-04-26 12:52:20 +02:00
|
|
|
$this->addClass(SearchUpdaterTest_Container::class);
|
2017-04-21 03:18:37 +02:00
|
|
|
|
|
|
|
$this->addFilterField('Field1');
|
|
|
|
$this->addFilterField('MyDate', 'Date');
|
|
|
|
$this->addFilterField('HasOneObject.Field1');
|
|
|
|
$this->addFilterField('HasManyObjects.Field1');
|
|
|
|
$this->addFilterField('ManyManyObjects.Field1');
|
|
|
|
}
|
|
|
|
}
|