Ejemplo n.º 1
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle()
 {
     // Setting a brand new index name
     $entityIndexName = config('elasticquent.default_index');
     $versionedIndex = $entityIndexName . '_' . time();
     Config::set('elasticquent.default_index', $versionedIndex);
     // create new index
     ASN::createIndex();
     $this->reindexClass(IPv4PrefixWhois::class);
     $this->reindexClass(IPv6PrefixWhois::class);
     $this->reindexClass(IX::class, $withRelated = false);
     $this->reindexClass(ASN::class);
     $this->hotSwapIndices($versionedIndex, $entityIndexName);
 }