Changing the Connection Pool

edit

Changing the Connection Pool

edit

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

$params['connectionPoolClass'] = '\Elasticsearch\ConnectionPool\SniffingConnectionPool';
$client = new Elasticsearch\Client($params);