Get started

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');

Enable anyone to build great Search & Discovery