yiisoft/yii2-sphinx
最新稳定版本:2.0.16
Composer 安装命令:
composer require yiisoft/yii2-sphinx
包简介
Sphinx full text search engine extension for the Yii framework
README 文档
README
Sphinx Extension for Yii 2
This extension adds Sphinx full text search engine extension for the Yii framework 2.0. It supports all Sphinx features including Real-time Indexes.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
Requirements
At least Sphinx version 2.0 is required. However, in order to use all extension features, Sphinx version 2.2.3 or higher is required.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yiisoft/yii2-sphinx
or add
"yiisoft/yii2-sphinx": "~2.0.0"
to the require section of your composer.json.
Configuration
This extension interacts with Sphinx search daemon using MySQL protocol and SphinxQL query language. In order to setup Sphinx "searchd" to support MySQL protocol following configuration should be added:
searchd
{
listen = localhost:9306:mysql41
...
}
To use this extension, simply add the following code in your application configuration:
return [ //.... 'components' => [ 'sphinx' => [ 'class' => 'yii\sphinx\Connection', 'dsn' => 'mysql:host=127.0.0.1;port=9306;', 'username' => '', 'password' => '', ], ], ];
统计信息
- 总下载量: 970.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 189
- 点击次数: 2
- 依赖项目数: 6
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-11-24