FriendsOfSymfony / FOSElasticaBundle

Elasticsearch PHP integration for your Symfony project using Elastica.
http://friendsofsymfony.github.io
MIT License
1.25k stars 793 forks source link

No commands defined in the "fos:elastica" namespace #1814

Open tuliof opened 3 years ago

tuliof commented 3 years ago

I followed the documentation, installed v6.0.0-beta4 to be able to use with my ElasticSearch v7.13.4.

Then run the recipe for the basic configuration.

Captura de Tela 2021-07-22 às 12 08 11 PM

This is my fos_elastica.yaml config.

fos_elastica:
    clients:
        default: { url: '%env(ELASTICSEARCH_URL)%' }
    indexes:
        participant:
            persistence:
                driver: orm
                model: AppBundle\Entity\Invitation\Participant
                listener: ~
            properties:
                occupation: ~
                company: ~

I get the following error when running php bin/console fos:elastica:populate

Captura de Tela 2021-07-22 às 12 04 50 PM

Paintras commented 3 years ago

I am having this issue right now aswell. I have build my project in docker and the elastica's services were registered normally, than I dropped all containers, deleted cache and vendor folder, builded project again and now It's not registered.

Paintras commented 3 years ago

Just like you did, I manually runned recipes:install on this package and now it works. Strange behaviour.

kezek commented 3 years ago

Same issue here.

le: managed to fix it by switching to dev-master in composer

SergheiLeonenco commented 2 years ago

I experienced the same problem. I tried to reinstall receipts and package with no luck. I'm using Symfony 5.4