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 updateconfig/packages/meilisearch.yaml:
.env file:
3. Configure an entity for indexing
Add theSearchable attribute to your Doctrine entity:
4. Index your data
Import existing entities to Meilisearch:5. Search
Use theSearchService to search your indexed entities:
6. Search with filters
First, configure filterable attributes inconfig/packages/meilisearch.yaml:
Available commands
| Command | Description |
|---|---|
meilisearch:import | Import all entities to Meilisearch |
meilisearch:clear | Clear all indexed data |
meilisearch:create | Create indexes with configured settings |
meilisearch:delete | Delete indexes |
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