IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Changing your ConnectionClass
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Changing your ConnectionClass
editChanging the connection class is very simple: instantiate the client with your chosen connection implementation:
$params['connectionClass'] = '\Elasticsearch\Connections\CurlMultiConnection'; $client = new Elasticsearch\Client($params);
Was this helpful?
Thank you for your feedback.