コード例 #1
0
 public function initialize()
 {
     // Change the index name
     self::$DI['app']['conf']->set(['main', 'search-engine', 'options', 'index'], 'test');
     self::$searchEngine = $es = new ElasticSearchEngine(self::$DI['app'], self::$DI['app']['elasticsearch.client'], self::$DI['app']['elasticsearch.options']['index']);
     self::$searchEngineClass = 'Alchemy\\Phrasea\\SearchEngine\\Elastic\\ElasticSearchEngine';
 }
コード例 #2
0
 public function initialize()
 {
     self::$searchEngine = ElasticSearchEngine::create(self::$DI['app']);
     self::$searchEngineClass = 'Alchemy\\Phrasea\\SearchEngine\\Elastic\\ElasticSearchEngine';
 }