public function createIndex() { $params = []; $params['index'] = $this->index; return $this->client->indices()->create($params); }