algolia/algolia-search-bundle
index_if (e.g., only index published: true posts).GET /api/products?q=...).hitsPerPage: 10 per language) without custom logic.Adopt if:
Look elsewhere if:
"Algolia + this Symfony bundle lets us ship search as a feature, not a technical debt item. Here’s why:
Risk: Minimal—bundle is battle-tested (used by SymfonyCast, Les-Tilleuls.coop), with Algolia’s SLA-backed uptime."
"This bundle eliminates 80% of the boilerplate for Algolia in Symfony. Key wins:
config/packages/algolia_search.yaml (3 lines per entity).algolia_search:
indices:
- name: products
class: App\Entity\Product
index_if: isActive # Conditional indexing
php bin/console search:import --indices=products --atomic # Zero-downtime
search:clear.SearchService anywhere:
$results = $searchService->search($entityManager, Product::class, 'query');
IndexManagerInterface.Tradeoffs:
Next Steps:
App\Entity\BlogPost).LIKE '%query%').Alternatives Considered:
How can I help you explore Laravel packages today?