public function batchSynonyms($objects, $forwardToReplicas = false, $replaceExistingSynonyms = false)
{
return $this->client->request($this->context, 'POST', '/1/indexes/' . $this->urlIndexName . '/synonyms/batch?replaceExistingSynonyms=' . ($replaceExistingSynonyms ? 'true' : 'false') . '&forwardToReplicas=' . ($forwardToReplicas ? 'true' : 'false'), null, $objects, $this->context->writeHostsArray, $this->context->connectTimeout, $this->context->readTimeout);
}