ftcreate('index_synupdate', $schema); // 2. Add synonyms into synonym group $response = $client->ftsynupdate('index_synupdate', 'synonym1', null, 'term1', 'term2'); echo 'Response:' . "\n"; print_r($response);