schevgeny / sphinx
Yii2 sphinx api
1.0.1
2017-04-10 11:58 UTC
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2024-09-20 20:16:06 UTC
README
Yii2 sphinx api
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist schevgeny/sphinx "*"
or add
"schevgeny/sphinx": "*"
to the require section of your composer.json
file.
Usage
Add component sphinx to config :
'components' => [ ... 'sphinx' => [ 'class' => 'schevgeny\sphinx\DGSphinxSearch', 'server' => 'SPHINX_SERVER_IP', 'port' => 3312, 'maxQueryTime' => 3000, 'enableProfiling'=>0, 'enableResultTrace'=>0, 'fieldWeights' => [ 'name' => 10000, 'keywords' => 100, ], ], ]