当我添加捆绑包时,我正在尝试将 Elasticsearch 捆绑包添加到我的 symfony2 项目中
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new FOS\ElasticaBundle\FOSElasticaBundle(),
);
}
第一种情况:我没有触摸配置文件:结果:白屏死机我放了一些配置
fos_elastica:
clients:
default: { host: localhost, port: 9200 }
indexes:
website:
client: default
types:
user:
mappings:
coordinates: { boost: 5 }
结果:白屏死机!有没有人知道发生了什么?