Skip to main content
Use the SearchService to index, search, and manage data with Algolia.

Inject the SearchService using type hints

To use search in a controller or service, inject the SearchService into the constructor. Symfony’s container autowires the concrete implementation for you.
PHP
Last modified on June 12, 2026