I am trying to use ClientBuilder
of Elasticsearch using symfony 6. I am getting following error
The HTTP client Symfony\Component\HttpClient\Psr18Client is not supported for custom options
This is the code I have tried. I had same lines of code in laravel which worked.
$hosts = ['https://localhost:9200'];
$client = ClientBuilder::create()
->setHosts($hosts)
->setSSLVerification(false)
->setBasicAuthentication('elastic', 'password')
->build();