Andere Arten

Loslegen

INSTALLIEREN


        
          
            

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

SUCHEN


        
          
            

$em = $this->getDoctrine()->getManagerForClass(Post::class);
$posts = $this->searchService->search($em, Post::class, 'query');

Entwickeln Sie beeindruckende Suchfunktionen.