Vorschläge

Produkte & Ressourcen

Los geht’s

INSTALLIEREN


        
          
            

composer require algolia/search-bundle:4.0.0

INHALTSVERZEICHNIS


        
          
            

algolia_search:
Indizes:
- Name: Beiträge
Klasse: App\Entity\Post
- Name: Kommentare
Klasse: App\Entity\Comment

$searchService->index($entityManager, $postsAndComments);

SUCHE


        
          
            

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