Suggerimenti

Inizia

INSTALLA


        
          
            

composer require algolia/search-bundle:4.0.0

INDICE


        
          
            

algolia_search:
indici:
- nome: posts
classe: App\Entity\Post
- nome: comments
classe: App\Entity\Comment

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

RICERCA


        
          
            

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