eZ Community » Forums » eZ Platform » Elastic Search
expandshrink

Elastic Search

Elastic Search

Thursday 20 October 2016 4:22:30 pm

Hi there,

I know Elastic Search is in beta, but i would like to try it happy.gif Emoticon

I've installed EZP 1.5.0 After follwing the documentation for ElasticSearch Bundle I encountered an error  when i want to create the index:

php app/console ezplatform:elasticsearch_create_index

Warning: Missing argument 3 for eZ\Bundle\EzPublishElasticsearchSearchEngineBundle\ApiLoader\ElasticsearchEngineFactory::__construct()

After some research, i've update the class to follow Solr implementation, the third argument was missing :

  vendor\ezsystems\ezpublish-kernel\eZ\Bundle\EzPublishElasticsearchSearchEngineBundle\ApiLoader\ElasticsearchEngineFactory.php

     public function __construct(
        RepositoryConfigurationProvider $repositoryConfigurationProvider,
        $defaultConnection,
        $searchEngineClass
    ) {
        $this->repositoryConfigurationProvider = $repositoryConfigurationProvider;
        $this->defaultConnection = $defaultConnection;
        $this->searchEngineClass = $searchEngineClass;
    }

and updated : vendor\ezsystems\ezpublish-kernel\eZ\Bundle\EzPublishElasticsearchSearchEngineBundle\Resources\config\services.yml

         arguments:
            - "@ezpublish.api.repository_configuration_provider"
            - "%ez_search_engine_elasticsearch.default_connection%"
            - "%ezpublish.spi.search.elasticsearch.class%"

But now, when I launch : php app/console ezplatform:elasticsearch_create_index

I get this error  : "Segmentation fault (core dumped)"

Maybe it come from my server environement (docker), or from the class itself if someone have an idea ?

 [2016-10-20 14:22:02] app.DEBUG: Changing SiteAccess in view providers [] []
[2016-10-20 14:22:02] event.DEBUG: Notified event "ezpublish.config.scope_change" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\ConfigScopeListener::onConfigScopeChange". [] []
[2016-10-20 14:22:02] event.DEBUG: Notified event "ezpublish.config.scope_change" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\DynamicSettingsListener::onConfigScopeChange". [] []
[2016-10-20 14:22:02] event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2016-10-20 14:22:02] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []
[2016-10-20 14:22:02] event.DEBUG: Notified event "console.command" to listener "Symfony\Bridge\Monolog\Handler\ConsoleHandler::onCommand". [] []
[2016-10-20 14:22:02] event.DEBUG: Notified event "console.command" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\ConsoleCommandListener::onConsoleCommand". [] []
[2016-10-20 14:22:02] doctrine.DEBUG: SELECT count(id) FROM ezcontentobject WHERE status = 1 [] []
[2016-10-20 14:22:02] doctrine.DEBUG: SELECT id, current_version FROM ezcontentobject WHERE status = 1 [] []

No reply yet!

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from