我在Symfony項目中使用elasticsearch與FOSElasticaBundle,這需要ruflin/elastica客戶端。爲了創建索引,我使用FOSElasticaBundle的command suggested in the documentation,並在我的本地機器中一切正常。 當我將項目部署到Heroku的,同樣的命令失敗拋出以下錯誤: elastica.ERROR: Ela
我在Symfony 3.3中使用FOSElasticaBundle。我已經註冊上計算POST_TRANSFORM事件和adds a custom property事件偵聽器是這樣的: public function addCustomProperty(TransformEvent $event)
{
$document = $event->getDocument();
$cu