On v3 there was:
$searchIndex = $client->initIndex($name);
$searchIndex->exists();
I could not find a existIndex method on v4 client version?
Workaround
try {
$client->getSettings($indexName);
} catch (NotFoundException) {
return false;
}
return true;
On v3 there was:
I could not find a existIndex method on v4 client version?
Workaround