/** * Create a new indexer service. * * @param AlgoliaManager $client * @param CustomParser $markdown * @param Filesystem $files * @return void */ public function __construct(AlgoliaManager $client, CustomParser $markdown, Filesystem $files) { $this->files = $files; $this->client = $client; $this->markdown = $markdown; $this->index = $client->initIndex(static::$index_name . '_tmp'); }
/** * Create Index. * * @return Index */ public function createIndex() { return $this->client->initIndex($this->getConfigurator()->index()); }