SearchService to index, search, and manage data with Algolia.
Inject the SearchService using type hints
To use search in a controller or service, inject theSearchService into the constructor.
Symfonyβs container autowires the concrete implementation for you.
PHP