public function moveIndex($srcIndexName, $dstIndexName)
{
$request = array('operation' => 'move', 'destination' => $dstIndexName);
return $this->request($this->context, 'POST', '/1/indexes/' . urlencode($srcIndexName) . '/operation', array(), $request, $this->context->writeHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
}
/** * 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); }