gpskomsa / sphinx-config
此包最新版本(0.1.1)没有可用的许可证信息。
一个用于构建 Sphinx 配置文件的 ZF2 模块
0.1.1
2016-09-12 08:56 UTC
Requires
- php: >=5.3.3
- symfony/yaml: 2.*
- zendframework/zendframework: ~2.1
This package is not auto-updated.
Last update: 2024-09-27 05:17:20 UTC
README
一个控制 Sphinxsearch 配置的 ZF2 模块
简介
SphinxConfig 是一个用于构建和控制系统 SphinxSearch 服务器配置文件的 Zend Framework 2 模块。
安装
通过克隆项目
Clone this project into your ./vendor/ directory.
使用 composer
Add this project in your composer.json:
"require": {
"gpskomsa/sphinx-config": "dev-master"
}
Now tell composer to download SphinxConfig by running the command:
$ php composer.phar update
安装后
在 application.config.php 文件中启用它。
<?php
return array(
'modules' => array(
// ...
'SphinxConfig',
),
// ...
);
选项
SphinxConfig 模块提供一些选项,允许您自定义基本功能。安装 SphinxConfig 后,将 ./vendor/gpskomsa/sphinxconfig/config/sphinx-config.global.php.dist 复制到 ./config/autoload/sphinx-config.global.php,并根据需要更改值。
以下选项可用
- config_id - 当前配置 ID,实际上是数据默认加载的配置文件的名称。
- config_dir - 包含配置文件文件结构的目录
- render_dir - 将生成的配置文件放在
sphinx格式的目录中