AlgoliaSearch\Client::copyIndex PHP Méthode

copyIndex() public méthode

Copy an existing index.
public copyIndex ( 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).
Résultat mixed
    public function copyIndex($srcIndexName, $dstIndexName)
    {
        $request = array('operation' => 'copy', 'destination' => $dstIndexName);
        return $this->request($this->context, 'POST', '/1/indexes/' . urlencode($srcIndexName) . '/operation', array(), $request, $this->context->writeHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
    }