createUpdate(); // optimize the index $update->addOptimize(true, false, 5); // this executes the query and returns the result $result = $client->update($update); echo 'Update query executed
'; echo 'Query status: ' . $result->getStatus(). '
'; echo 'Query time: ' . $result->getQueryTime(); htmlFooter();