> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Access the Algolia search service

> Integrate the Algolia SearchBundle in your Symfony app to index, search, and manage data.

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 PHP icon=code theme={"system"}
namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Algolia\SearchBundle\SearchService;

class ExampleController extends AbstractController
{
    protected $searchService;

    public function __construct(SearchService $searchService)
    {
        $this->searchService = $searchService;
    }
}
```
