ezpublish 2014.11 中的 elasticsearch / solr 搜索

elasticsearch / solr search in ezpublish 2014.11

使用 eZ Publish community 2014.11,我想在 Elastic Search 或 Solr(或类似的索引引擎)中索引内容,以便:

执行类似 ezfind 的首选方法是什么 2014.11

备注:

```

php ezpublish/console ezpublish:elasticsearch_create_index --env=dev
PHP Fatal error:  Call to undefined method eZPublishCorePersistenceLegacyContentSearchHandler_000000007c8f5baa000000006bdeda53::setCommit() in /var/www/ez5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/SearchHandler.php on line 122
PHP Stack trace:
PHP   1. {main}() /var/www/ez5/ezpublish/console:0
PHP   2. Symfony\Component\Console\Application->run() /var/www/ez5/ezpublish/console:27
PHP   3. eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() /var/www/ez5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:124
PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /var/www/ez5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41
PHP   5. Symfony\Component\Console\Application->doRun() /var/www/ez5/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
PHP   6. Symfony\Component\Console\Application->doRunCommand() /var/www/ez5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193
PHP   7. Symfony\Component\Console\Command\Command->run() /var/www/ez5/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:896
PHP   8. eZ\Bundle\EzPublishElasticsearchBundle\Command\ElasticsearchCreateIndexCommand->execute() /var/www/ez5/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252
PHP   9. eZ\Publish\Core\Persistence\Cache\SearchHandler->setCommit() /var/www/ez5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishElasticsearchBundle/Command/ElasticsearchCreateIndexCommand.php:61

```

到目前为止我发现的最好方法是从 symfony 调用 ezFind,如下所述:

http://share.ez.no/blogs/carlos-revillo/ez-find-with-symfony-controller-and-twig-templates