elasticsearch extension in your config file.
extensions: elasticsearch: Contributte\Elasticsearch\DI\ElasticsearchExtension
ClientBuilder class to build and setup the
Client. ClientBuilder internally uses
Monolog, which you'll probably need to install as well.
composer require monolog/monolog
elasticsearch: hosts: - 'localhost'
elasticsearch: hosts: - host: 'localhost' port: 9200 scheme: 'https' user: 'foo' pass: 'bar'
host is required, others are recommended, but not necessary.