/srv/www/apppicker.com/htdocs/vendor/tieste/phalcon-core/lib/Engine/Search/Elasticsearch/Client.php(16)
04 */ 05 namespace Engine\Search\Elasticsearch; 06 07 use Elastica\Client as ElCient; 08 09 /** 10 * Class Type 11 * 12 * @category Engine 13 * @package Search 14 * @subcategory Elasticsearch 15 */ 16 class Client extends ElCient implements 17 \Phalcon\Events\EventsAwareInterface, 18 \Phalcon\DI\InjectionAwareInterface 19 { 20 use \Engine\Tools\Traits\DIaware, 21 \Engine\Tools\Traits\EventsAware; 22 23 /** 24 * Returns the index for the given connection 25 * 26 * @param \Engine\Search\Elasticsearch\ModelAdapter $model 27 * @return \Engine\Search\Elasticsearch\Index Index for the given name 28 */
#0 |
+
–
/srv/www/apppicker.com/htdocs/vendor/composer/ClassLoader.php(444): include("/srv/www/apppicker.com/htdocs/vendor/tieste/phalcon-core/lib/Eng...") 439 * 440 * Prevents access to $this/self from included files. 441 */ 442 function includeFile($file) 443 { 444 include $file; 445 } |
#1 |
+
–
/srv/www/apppicker.com/htdocs/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile("/srv/www/apppicker.com/htdocs/vendor/tieste/phalcon-core/lib/Eng...") 317 * @return bool|null True if loaded, null otherwise 318 */ 319 public function loadClass($class) 320 { 321 if ($file = $this->findFile($class)) { 322 includeFile($file); 323 324 return true; 325 } 326 } 327 |
#2 |
unknown(0): Composer\Autoload\ClassLoader->loadClass("Engine\Search\Elasticsearch\Client")
|
#3 |
+
–
/srv/www/apppicker.com/htdocs/protected/components/PhalconEngine.php(110): spl_autoload_call("Engine\Search\Elasticsearch\Client") 105 { 106 $config = $this->_config->elastica->toArray(); 107 108 $di->set('elastic', function() use ($config) { 109 110 $elastica = new \Engine\Search\Elasticsearch\Client($config); 111 112 return $elastica; 113 }); 114 } 115 |
#4 |
unknown(0): PhalconEngine->{closure}()
|
#5 |
unknown(0): Phalcon\Di\Service->resolve(null, Phalcon\Di\FactoryDefault)
|
#6 |
+
–
/srv/www/apppicker.com/htdocs/vendor/tieste/phalcon-core/lib/Engine/Search/Elasticsearch/Type.php(61): Phalcon\Di->get("elastic") 56 { 57 if (null === $this->_index) { 58 if ($this->_adapter instanceof Client) { 59 $this->_index = $this->_adapter->getIndex($this->_model); 60 } else { 61 $this->_index = $this->getDi()->get($this->_adapter)->getIndex($this->_model); 62 } 63 } 64 65 return $this->_index; 66 } |
#7 |
+
–
/srv/www/apppicker.com/htdocs/vendor/ruflin/elastica/lib/Elastica/Type.php(519): Engine\Search\Elasticsearch\Type->getIndex() 514 */ 515 public function request($path, $method, $data = array(), array $query = array()) 516 { 517 $path = $this->getName().'/'.$path; 518 519 return $this->getIndex()->request($path, $method, $data, $query); 520 } 521 522 /** 523 * Sets the serializer callable used in addObject. 524 * |
#8 |
+
–
/srv/www/apppicker.com/htdocs/vendor/ruflin/elastica/lib/Elastica/Type.php(243): Elastica\Type->request("364203371", "GET", array(), array()) 238 */ 239 public function getDocument($id, $options = array()) 240 { 241 $path = urlencode($id); 242 243 $response = $this->request($path, Request::GET, array(), $options); 244 $result = $response->getData(); 245 246 if (!isset($result['found']) || $result['found'] === false) { 247 throw new NotFoundException('doc id '.$id.' not found'); 248 } |
#9 |
+
–
/srv/www/apppicker.com/htdocs/vendor/tieste/phalcon-core/lib/Engine/Search/Elasticsearch/Indexer.php(508): Elastica\Type->getDocument("364203371") 503 * @throws \Engine\Exception 504 */ 505 public function existItemById($id) 506 { 507 try { 508 $isDocumentExists = $this->getType()->getDocument($id); 509 } catch (\Exception $e) { 510 $isDocumentExists = false; 511 } 512 513 return $isDocumentExists; |
#10 |
+
–
/srv/www/apppicker.com/htdocs/protected/components/PhalconEngine.php(215): Engine\Search\Elasticsearch\Indexer->existItemById("364203371") 210 */ 211 public function deleteFromApplicationIndex($appId) 212 { 213 $appSearchIndexer = $this->getSearchApplicationIndexer(); 214 215 if ($appSearchIndexer->existItemById($appId)) { 216 $appSearchIndexer->deleteItemById($appId); 217 } 218 219 return; 220 } |
#11 |
+
–
/srv/www/apppicker.com/htdocs/protected/controllers/AppsController.php(207): PhalconEngine->deleteFromApplicationIndex("364203371") 202 Yii::app()->cache->clearByTag(CacheModel::SECTION_APP . '-' . $id); 203 $app = $this->appsModel->getFullApp($id); 204 Yii::app()->PhalconEngine->addToApplicationIndex($id); 205 $this->redirect($this->createUrl('apps/details', array('id'=> $id, 'title'=>ViewHelper::getAppSlugFromTitle($app['title'])))); 206 } else { 207 Yii::app()->PhalconEngine->deleteFromApplicationIndex($id); 208 Yii::app()->user->setFlash('notice', "App missing, try to use search."); 209 $this->redirect('/search'); 210 } 211 } 212 } |
#12 |
unknown(0): AppsController->actionDetails("364203371", "ebay-for-ipad")
|
#13 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(AppsController, array("364203371", "ebay-for-ipad")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#14 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(AppsController, ReflectionMethod, array("id" => "364203371", "title" => "ebay-for-ipad")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#15 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("id" => "364203371", "title" => "ebay-for-ipad")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#16 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#17 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#18 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("details") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#19 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("apps/details") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#20 |
+
–
/srv/www/apppicker.com/htdocs/vendor/yiisoft/yii/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#21 |
+
–
/srv/www/apppicker.com/htdocs/index.php(58): CApplication->run() 53 54 if (!isset($app->params[Configuration::PREFIX_ELASTICA]) || $app->params[Configuration::PREFIX_ELASTICA] == null || $app->params[Configuration::PREFIX_ELASTICA] == '') { 55 $app->params->add(Configuration::PREFIX_ELASTICA, '1'); 56 } 57 58 $app->run(); |