S
S
sl1m_dogg2016-04-01 21:11:50
symfony
sl1m_dogg, 2016-04-01 21:11:50

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: ~

When I run
php app/console fos:elastica:populate
it throws an error, Wrong parameters for Exception

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2016-04-02
@prototype_denis

First link in Google
https://github.com/FriendsOfSymfony/FOSElasticaBun...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question