Yii2 Bootstrap 3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Paul Klimov 18af6984fc Merge branch 'sphinx' of github.com:klimov-paul/yii2 into sphinx 11 years ago
..
ActiveQuery.php Sphinx documentation updated. 11 years ago
ActiveRecord.php Merge branch 'sphinx' of github.com:klimov-paul/yii2 into sphinx 11 years ago
ActiveRelation.php Sphinx documentation updated. 11 years ago
ColumnSchema.php Sphinx MVA insert and update resolved. 11 years ago
Command.php Sphinx documentation updated. 11 years ago
Connection.php Sphinx documentation updated. 11 years ago
DataReader.php Sphinx MVA insert and update resolved. 11 years ago
IndexSchema.php Index schema type support added to Sphinx 11 years ago
LICENSE.md Sphinx extensions skeleton created. 11 years ago
Query.php Sphinx documentation updated. 11 years ago
QueryBuilder.php Sphinx Active Record updated to be compatible with ActiveDataProvider. 11 years ago
README.md Sphinx documentation updated. 11 years ago
Schema.php Sphinx documentation updated. 11 years ago
composer.json Sphinx documentation updated. 11 years ago

README.md

Yii 2.0 Public Preview - Sphinx Extension

Thank you for choosing Yii - a high-performance component-based PHP framework.

If you are looking for a production-ready PHP framework, please use Yii v1.1.

Yii 2.0 is still under heavy development. We may make significant changes without prior notices. Yii 2.0 is not ready for production use yet.

Build Status

This is the yii2-sphinx extension.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require yiisoft/yii2-sphinx "*"

or add

"yiisoft/yii2-sphinx": "*"

to the require section of your composer.json.

Note: You might have to run php composer.phar selfupdate

Usage & Documentation

This extension adds Sphinx full text search engine extension for the Yii framework. This extension interact 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
	...
}

This extension supports all Sphinx features including Runtime Indexes. Since this extension uses MySQL protocol to access Sphinx, it shares base approach and much code from the regular "yii\db" package.

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