SolrBundle icon indicating copy to clipboard operation
SolrBundle copied to clipboard

symfony 4 support

Open Nemo64 opened this issue 7 years ago • 1 comments

I'm not sure if im just overlooking something but I tried to use this bundle with symfony 4.1.

I added the bundle like in the new bundles.php like this:

    FS\SolrBundle\FSSolrBundle::class => ['all' => true],

And then: no commands. So I tried to manually add them in the service.yml by just blindly adding the command folder to autowire:

FS\SolrBundle\Command\:
    resource: '../vendor/floriansemm/solr-bundle/FS/SolrBundle/Command/*Command.php'

worked, now i have commands... but they don't work. All services are private by default since symfony 3.4 so just to check I made all services by default public within your bundle by modifying services.xml

<services>
    <defaults public="true" />
    ...
</services>

And horray, it seems to do something, i can now use solr:index:popuplate... but none of my fields are populated.

Nemo64 avatar Aug 07 '18 09:08 Nemo64

I'm also facing the issue of the index being not populated even though the bundle is installed and the command solr:index:populate does not throw an error. (Using Symfony 4.4)

entepe85 avatar Jan 27 '20 10:01 entepe85