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'; }
public function initialize() { self::$searchEngine = ElasticSearchEngine::create(self::$DI['app']); self::$searchEngineClass = 'Alchemy\\Phrasea\\SearchEngine\\Elastic\\ElasticSearchEngine'; }