根据索引操作和源代码,以下应该工作
$client = new ElasticsearchClient(); $indexParams['index'] = 'my_index'; $client->indices()->exists($indexParams);

根据索引操作和源代码,以下应该工作
$client = new ElasticsearchClient(); $indexParams['index'] = 'my_index'; $client->indices()->exists($indexParams);