Skip to main content
The official meilisearch-symfony bundle provides seamless integration between Meilisearch and Symfony applications with Doctrine ORM support.

Prerequisites

  • PHP 7.4 or higher
  • Symfony 5.4 or higher
  • Doctrine ORM (optional, for automatic entity indexing)
  • A Meilisearch instance (Cloud or self-hosted)

1. Install the bundle

2. Configure the bundle

Create or update config/packages/meilisearch.yaml:
Add to your .env file:

3. Configure an entity for indexing

Register your entity in config/packages/meilisearch.yaml:
In your entity, implement getSearchableArray() to control which fields are indexed:

4. Index your data

Import existing entities to Meilisearch:
New entities are automatically indexed when created or updated via Doctrine. Use SearchManagerInterface to search your indexed entities:

6. Search with filters

Add index settings to your config/packages/meilisearch.yaml:
Update the index settings:
Then search with filters:

Available commands

Raw client access

For advanced operations, access the Meilisearch client directly:

Next steps

Full-text search

Configure ranking and relevancy

Filtering

Add filters and facets

AI-powered search

Add semantic search

API reference

Explore all search parameters

Resources