Algolia\AlgoliaSearch\Api\SearchClient:
- Preferred: inject it by type-hinting the constructor. Symfony autowires the client for you.
- From the container: retrieve it with the public
search.clientservice ID. For example,$container->get('search.client').
PHP