mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
23 lines
569 B
PHP
23 lines
569 B
PHP
<?php
|
|
|
|
namespace SilverStripe\FullTextSearch\Tests\SolrIndexTest;
|
|
|
|
use SilverStripe\FullTextSearch\Solr\SolrIndex;
|
|
|
|
class SolrIndexTest_BoostedIndex extends SolrIndex
|
|
{
|
|
protected function getStoredDefault()
|
|
{
|
|
// Override isDev defaulting to stored
|
|
return 'false';
|
|
}
|
|
|
|
public function init()
|
|
{
|
|
$this->addClass('SearchUpdaterTest_Container');
|
|
$this->addAllFulltextFields();
|
|
$this->setFieldBoosting('SearchUpdaterTest_Container_Field1', 1.5);
|
|
$this->addBoostedField('Field2', null, array(), 2.1);
|
|
}
|
|
}
|