Answer the question
In order to leave comments, you need to log in
Where does it stink in my fos_elastica.yml?
I decided to learn elastic, started coding, registered indexes in the yapla, this is what happened:
fos_elastica:
clients:
default: { host: %elastic_host%, port: %elastic_port% }
indexes:
my_blog:
client: default
types:
article:
mappings:
id:
type: integer
createdAt:
type: date
publishedAt:
type: date
published:
type: boolean
title: ~
content: ~
persistence:
driver: orm
model: ElasticBundle\Entity\Article
finder: ~
provider: ~
listener: ~
php app/console fos:elastica:populate
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question