Beispiel #1
0
 public static function tearDownAfterClass()
 {
     self::$_type->getIndex()->delete();
     CMTest_TH::getServiceManager()->getElasticsearch()->setEnabled(false);
     parent::tearDownAfterClass();
 }
Beispiel #2
0
 protected function _updateSearchIndex()
 {
     CM_Model_Location::createAggregation();
     $type = new CM_Elasticsearch_Type_Location();
     $searchIndexCli = new CM_Elasticsearch_Index_Cli(null, $this->_streamOutput, $this->_streamError);
     $searchIndexCli->create($type->getIndex()->getName());
 }