Example #1
0
 function shortUrl($query, $offset = 0, $limit = 2000, $aParams)
 {
     try {
         $solr = Pandamp_Search_Engine::factory()->getShorturlConnection();
         $hits = $solr->search($query, $offset, $limit, $aParams);
         if ($hits->getHttpStatus() == 200) {
             return $hits;
         }
     } catch (Exception $e) {
     }
 }
Example #2
0
 function indexAction()
 {
     set_time_limit(0);
     ini_set('max_execution_time', '0');
     $this->_helper->viewRenderer->setNoRender(TRUE);
     $title = "<h4>HUKUMONLINE INDONESIA: <small>search</small></h4><hr/>";
     echo $title . '<br>';
     $solrAdapter = Pandamp_Search_Engine::factory(array('host' => 'localhost', 'port' => '8983', 'homedir' => '/solr/core-catalog'));
     $solrAdapter->reIndexCatalog();
 }