/** * (non-PHPdoc) * @see \oat\tao\model\search\Search::fullReIndex() */ public function fullReIndex(\Traversable $resourceTraversable) { $indexer = new SolariumIndexer($this->getClient(), $resourceTraversable); $count = $indexer->run(); // generate index substitution map $this->setIndexSubstitutions($indexer->getIndexMap()); return $count; }
public function index(\Traversable $resourceTraversable) { $indexer = new SolariumIndexer($this->getClient(), $resourceTraversable); $count = $indexer->run(); // generate index substitution map $map = array(); foreach ($indexer->getUsedIndexes() as $index) { $map[$index->getIdentifier()] = $index->getSolrId(); } $this->setIndexSubstitutions($map); return $count; }