tweedegolf / plantbundle
此包已被废弃,不再维护。未建议替代包。
用于与tweede golf的YGA植物数据库在不同项目中协同工作的包。
dev-master
2015-07-13 15:25 UTC
Requires
- friendsofsymfony/elastica-bundle: ~3.0
- symfony/symfony: ~2.6
This package is auto-updated.
Last update: 2023-06-29 10:26:53 UTC
README
用于在不同项目中与YGA植物数据库协同工作的包。
安装
使用[Composer][composer]将此包添加到需求中
{ "require": { "tweedegolf/plantbundle": "dev-master" } }
配置
设置elastica_host和elastica_port参数
tweede_golf_plant:
elastica_host: 127.0.0.1
elastica_port: 9200
在您的parameters.yml中设置以下参数为正确的值,用于植物数据库
dbtool_driver
dbtool_host
dbtool_name
dbtool_user
使用
- 使用此包提供的命令
bin/symfony elastica:refresh
来构建/刷新植物搜索索引 - 使用PlantRetriever作为植物数据库的存储库
- 使用PlantFinder(或扩展它)来搜索植物搜索索引
PlantRetriever和PlantProxy
待办事项
PlantFinder
待办事项