1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-18 02:31:10 +01:00

elasticsearch host quick fix

Summary: Quick fix for the elasticsearch search engine Ref T8274

Test Plan: Did a couple of searches

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T8274

Differential Revision: https://secure.phabricator.com/D12967
This commit is contained in:
Fabian Stelzer 2015-05-21 09:01:17 -07:00 committed by epriestley
parent f21972a01f
commit 7ecd5155e5

View file

@ -6,6 +6,11 @@ final class PhabricatorElasticSearchEngine extends PhabricatorSearchEngine {
private $index; private $index;
private $timeout; private $timeout;
public function __construct() {
$this->uri = PhabricatorEnv::getEnvConfig('search.elastic.host');
$this->index = PhabricatorEnv::getEnvConfig('search.elastic.namespace');
}
public function getEngineIdentifier() { public function getEngineIdentifier() {
return 'elasticsearch'; return 'elasticsearch';
} }
@ -15,7 +20,7 @@ final class PhabricatorElasticSearchEngine extends PhabricatorSearchEngine {
} }
public function isEnabled() { public function isEnabled() {
return (bool)PhabricatorEnv::getEnvConfig('search.elastic.host'); return (bool)$this->uri;
} }
public function setURI($uri) { public function setURI($uri) {