Hello! I’d like to include Sphinx into my project; I downloaded archieve using link from article about dgsphinxsearch extension, and added all files into protected/components catalog. Now there are the following files in protected/components catalog:
sphinx-1.3.0 (folder)
Controller.php
UserIdentity.php
package.xml
Also I added some lines into the config file:
'search' => array(
'class' => 'application.components.DGSphinxSearch',
'server' => '127.0.0.1',
'port' => 9312,
'maxQueryTime' => 3000,
'enableProfiling'=>0,
'enableResultTrace'=>0,
),
And some text action into my SiteController:
public function actionTest()
{
$search = Yii::App()->search->
setArrayResult(false)->
setMatchMode(SPH_MATCH_EXTENDED);
}
I got the following exception: Alias "application.components.DGSphinxSearch" is invalid. Make sure it points to an existing PHP file and the file is readable.
Also I tried to copy all files from the “sphinx-1.3.0” folder into protected/components folder, but it didn’t help. How can I fix my problem? Thanks in advance.