Connecting using Symfony2 FOSElasticaBundle


(Sofien000) #1

HI. I am using Elasticsearch 1.5.2. I add this code in app/config/config.yml

fos_elastica:
    clients:
        default: { host: localhost, port: 9200 }
    serializer:
        callback_class: FOS\ElasticaBundle\Serializer\Callback
        serializer: serializer
    indexes:
        afsy:
            client: default
            types:
                Article:
                    mappings: ~
                    persistence:
                        driver: orm # orm, mongodb, propel are available
                        model:  Afsy\Bundle\CoreBundle\Entity\Article
                        provider: ~
                Author:
                    mappings: ~
                    persistence:
                        driver: orm
                        model:  Afsy\Bundle\CoreBundle\Entity\Author
                        provider: ~

and I try this command

$ php app/console fos:elastica:populate

I get this error

[invalidArgumentException ] there are no commands defined in the "fos:elastica" namespace


(Zachary Tong) #2

I don't know the answer, but I suspect you'll have better luck opening a ticket in the FOSElasticaBundle repo and asking there. I doubt the developers browse this forum often, and I don't think many here will have much experience with that bundle. Goodluck :slight_smile:


(Sofien000) #3

Thank you :slight_smile:


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.