Solr service not responding with PHP

时间:2016-04-04 18:04:16

标签: php yii solr

I'm new to solr ...

I installed it by this command pecl install solr on OSX .

And put the extension extension=solr.so in php.ini then restart by apachectl restart.

But still this problem shown

CException

Solr service not responding.

This is the code :

public static function SolrQuery($query,$limit=1,$offset=0,$additionalParameters=array())     
{         
 //echo $query;exit;         
 //var_dump($query); exit;         
 return Yii::app()->smsReportAdmin->get($query,$offset,$limit,$additionalParameters);     
}

Please help ...

0 个答案:

没有答案