Sugestões

Produtos e Recursos

Comece agora

INSTALAR


        
          
            

composer require algolia/search-bundle:4.0.0

ÍNDICE


        
          
            

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

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

PESQUISAR


        
          
            

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