Changing your ConnectionClass

edit

Changing your ConnectionClass

edit

Changing the connection class is very simple: instantiate the client with your chosen connection implementation:

$params['connectionClass'] = '\Elasticsearch\Connections\CurlMultiConnection';
$client = new Elasticsearch\Client($params);