realestateconz / solr-bundle
该软件包已被弃用,不再维护。未建议替代软件包。
Solr ODM Bundle
dev-master
2013-11-07 00:46 UTC
Requires
- php: >=5.3.2
- doctrine/common: ~2.2,>=2.2.3
- solarium/solarium: 2.3.x
This package is not auto-updated.
Last update: 2023-11-25 09:07:05 UTC
README
介绍
SolrBundle 为 solr 提供ODM支持
安装
步骤 1:安装 SolrBundle
将以下依赖项添加到您的 composer.json 文件中
{ "require": { ..., "realestateconz/solr-bundle": "master-dev" } }
步骤 2:启用软件包
最后,在内核中启用软件包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Realestate\SolrBundle\RealestateSolrBundle(), ); }
步骤 3:配置
# app/config/config.yml realestate_solr: solarium: connection: adapter: Realestate\SolrBundle\Bridge\Solarium\Adapter\ZendHttp adapteroptions: host: localhost port: 8080 path: /solr timeout: 10 adapter: Zend_Http_Client_Adapter_Curl