Made to simplify the usage of Algolia’s API within the Symfony Framework
Get started with 5 lines of YAML
Leverages Normalizers 2 to convert entities for indexing
Unsubscribe from doctrine events to use a messaging/queue system
Background retry strategy to ensure uptime
Seamless batching via iterators to optimize number of network calls
Zero downtime reindexing feature
API access to all Algolia functionality, AI products, and advanced features, including Recommend
Compatible with Symfony 3.4 LTS, Symfony >= 4.0, PHP >= 7.2
INSTALL
composer require algolia/search-bundle:4.0.0
INDEX
algolia_search:
indices:
- name: posts
class: App\Entity\Post
- name: comments
class: App\Entity\Comment
$searchService->index($entityManager, $postsAndComments);
SEARCH
$em = $this->getDoctrine()->getManagerForClass(Post::class);
$posts = $this->searchService->search($em, Post::class, 'query');