public function __construct(ClientContext $context, Client $client, $indexName) { $this->context = $context; $this->client = $client; $this->indexName = $indexName; $this->urlIndexName = urlencode($indexName); }