示例#1
0
 /**
  * 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');
 }
示例#2
0
 /**
  * Create Index.
  *
  * @return Index
  */
 public function createIndex()
 {
     return $this->client->initIndex($this->getConfigurator()->index());
 }