2017-04-21 03:18:37 +02:00
|
|
|
<?php
|
|
|
|
|
2017-04-26 12:52:20 +02:00
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrIndexVersionedTest;
|
2017-04-21 03:18:37 +02:00
|
|
|
|
|
|
|
use SilverStripe\FullTextSearch\Solr\SolrIndex;
|
2017-04-26 12:52:20 +02:00
|
|
|
use SilverStripe\FullTextSearch\Tests\SearchVariantVersionedTest\SearchVariantVersionedTest_Item;
|
|
|
|
use SilverStripe\FullTextSearch\Tests\SolrIndexVersionedTest\SolrIndexVersionedTest_Object;
|
2017-04-21 03:18:37 +02:00
|
|
|
|
|
|
|
class SolrVersionedTest_Index extends SolrIndex
|
|
|
|
{
|
|
|
|
public function init()
|
|
|
|
{
|
2017-04-26 12:52:20 +02:00
|
|
|
$this->addClass(SearchVariantVersionedTest_Item::class);
|
|
|
|
$this->addClass(SolrIndexVersionedTest_Object::class);
|
2017-04-21 03:18:37 +02:00
|
|
|
$this->addFilterField('TestText');
|
|
|
|
$this->addFulltextField('Content');
|
|
|
|
}
|
|
|
|
}
|