DGSphinxSearchException

connection to 127.0.0.1:9312 failed (errno=111, msg=Connection refused)

/var/www/vipsuv.ru/htdocs/protected/components/DGSphinxSearch.php(466)

454 
455         if ($this->enableResultTrace) {
456             Yii::trace("Query '$query' is performed for index '$index'", 'CEXT.DGSphinxSearch.doSearch');
457         }
458 
459         if ($this->enableProfiling) {
460             Yii::beginProfile("Search query: '{$query}' in index: '{$index}'", 'CEXT.DGSphinxSearch.doSearch');
461         }
462 
463         $res = $this->client->query($query, $index, $comment);
464 
465         if ($this->getLastError()) {
466             throw new DGSphinxSearchException($this->getLastError());
467         }
468 
469         if ($this->enableProfiling) {
470             Yii::endProfile("Search query: '{$query}' in index: '{$index}'", 'CEXT.DGSphinxSearch.doSearch');
471         }
472 
473         if ($this->enableResultTrace) {
474             Yii::trace("Query result: " . substr(print_r($res, true), 500), 'CEXT.DGSphinxSearch.doSearch');
475         }
476 
477         if (!isset($res['matches'])) {
478             $res['matches'] = array();

Stack Trace

#0
+
 /var/www/vipsuv.ru/htdocs/protected/components/DGSphinxSearch.php(500): DGSphinxSearch->doSearch()
495 
496         // handle given criteria
497         $this->setCriteria($criteria);
498 
499         // process search
500         $res = $this->doSearch($this->criteria->from, $this->criteria->query);
501 
502         //ugly hack
503         if ($criteria->paginator) {
504             if (isset($res['total'])) {
505                 $criteria->paginator->setItemCount($res['total']);
#1
+
 /var/www/vipsuv.ru/htdocs/protected/components/DGSphinxSearch.php(214): DGSphinxSearch->searchByCriteria()
209     public function searchRaw($criteria = null)
210     {
211         if ($criteria === null) {
212             $res = $this->doSearch($this->criteria->from, $this->criteria->query);
213         } else {
214             $res = $this->searchByCriteria($criteria);
215         }
216         return $res;
217     }
218 
219     /**
#2
+
 /var/www/vipsuv.ru/htdocs/protected/components/SphinxDataProvider.php(154): DGSphinxSearch->searchRaw()
149         
150         //var_dump($sphinxCriteria); exit;
151         
152         $sphinx = Yii::App()->search;
153         $sphinx->setMatchMode(SPH_MATCH_EXTENDED2);
154         $resArray = $sphinx->searchRaw($sphinxCriteria);
155         
156         $total_found = isset($resArray['total_found']) ? $resArray['total_found'] : 0;
157         if(($pagination=$this->getPagination())!==false)
158         {
159             $pagination->setItemCount($total_found);
2024-03-28 14:47:35 nginx/1.18.0 Yii Framework/1.1.9