yii2-sphinx

Yii 2 Sphinx extension.

  • 所有者: yiisoft/yii2-sphinx
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

Latest Stable Version
Total Downloads
Build Status

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' => '',
        ],
    ],
];

主要指标

概览
名称与所有者yiisoft/yii2-sphinx
主编程语言PHP
编程语言PHP (语言数: 2)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2013-11-24 22:45:37
推送于2024-03-21 18:21:22
最后一次提交2024-03-21 21:21:18
发布数20
最新版本名称2.0.16 (发布于 2024-03-21 21:21:04)
第一版名称2.0.0-alpha (发布于 )
用户参与
星数180
关注者数32
派生数72
提交数4.9k
已启用问题?
问题数86
打开的问题数3
拉请求数39
打开的拉请求数1
关闭的拉请求数18
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?