Chcę w projekcie symfony zaimplementować wyszukiwarkę produktów. Chciałbym wykorzystać do tego np. ElasticaBundle. Nie wiem co robię źle,bo rezultatem wyszukiwania jest pusta tablica. Jeśli chodzi o Elastica to próbowałem nawet przepisać ten przykład który jest w dokumentacji na githubie Moja konfiguracja wygląda tak:
/// Controller public function indexAction() { $finder = $this->container->get('fos_elastica.finder.app.user'); $results = $finder->find('Ula'); ///return new Response($results); } ///app/config.yml fos_elastica: clients: default: { host: localhost, port: 3306} indexes: app: types: user: mappings: username: type: string firstName: type: string lastName: type: string email: type: string persistence: # the driver can be orm, mongodb, phpcr or propel # listener and finder are not supported by # propel and should be removed driver: orm model: SklepBundle\Entity\User provider: ~ finder: ~ listener: ~
Próbowałem też użyć SoirBundle, ale skutek jest podobny. Dodam jeszcze że pracuję na xampie. Będę wdzieczny za podpowiedzi