protected function configure()
 {
     // Test search without analyser filters and stopwords.
     Config::set('laravel-lucene-search.analyzer.filters', []);
     Config::set('laravel-lucene-search.analyzer.stopwords', []);
     parent::configure();
 }
 public function setUp()
 {
     parent::setUp();
     Product::unguard();
     $this->existed[] = Product::create(['name' => 'p1']);
     $this->existed[] = Product::create(['name' => 'p2']);
     $this->existed[] = Product::create(['name' => 'p3']);
     $this->notFilled = new Product();
     $this->notFilled->id = $this->existed[2]->id;
     $this->notExisted = new Product();
     $this->notExisted->id = 999;
 }
 protected function configure()
 {
     parent::configure();
     Config::set('laravel-lucene-search.index.models', ['tests\\models\\Product' => ['fields' => ['name', 'description'], 'optional_attributes' => ['accessor' => 'custom_optional_attributes'], 'boost' => ['accessor' => 'custom_boost']]]);
 }
Ejemplo n.º 4
0
 protected function configure()
 {
     parent::configure();
 }