moveIndex() public method

Move an existing index.
public moveIndex ( string $srcIndexName, string $dstIndexName ) : mixed
$srcIndexName string the name of index to copy.
$dstIndexName string the new index name that will contains a copy of srcIndexName (destination will be overwritten if it already exist).
return mixed
Example #1
0
 /**
  * Index all of the available documentation.
  *
  * @return void
  */
 public function indexAllDocuments()
 {
     foreach (Documentation::getDocVersions() as $key => $title) {
         $this->indexAllDocumentsForVersion($key);
     }
     $this->setSettings();
     $this->client->moveIndex($this->index->indexName, static::$index_name);
 }
 public function moveIndex($index_name_tmp, $index_name)
 {
     $this->client->moveIndex($index_name_tmp, $index_name);
 }
 public function moveIndex($index_name_tmp, $index_name)
 {
     $this->checkClient(__FUNCTION__);
     $this->client->moveIndex($index_name_tmp, $index_name);
 }