Example #1
0
 protected function autoIndex()
 {
     foreach ($this->config->getTypes() as $type) {
         $class = $this->config->getClass($type);
         $class = new $class();
         $class->setSearchableService($this);
         $this->regularAutoIndex($class, $this->config->getWith($type));
     }
     foreach ($this->config->getInvertedTypes() as $updated => $config) {
         $this->invertedAutoIndex($updated, $config);
     }
 }