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:
parent
f21972a01f
commit
7ecd5155e5
1 changed files with 6 additions and 1 deletions
|
@ -6,6 +6,11 @@ final class PhabricatorElasticSearchEngine extends PhabricatorSearchEngine {
|
|||
private $index;
|
||||
private $timeout;
|
||||
|
||||
public function __construct() {
|
||||
$this->uri = PhabricatorEnv::getEnvConfig('search.elastic.host');
|
||||
$this->index = PhabricatorEnv::getEnvConfig('search.elastic.namespace');
|
||||
}
|
||||
|
||||
public function getEngineIdentifier() {
|
||||
return 'elasticsearch';
|
||||
}
|
||||
|
@ -15,7 +20,7 @@ final class PhabricatorElasticSearchEngine extends PhabricatorSearchEngine {
|
|||
}
|
||||
|
||||
public function isEnabled() {
|
||||
return (bool)PhabricatorEnv::getEnvConfig('search.elastic.host');
|
||||
return (bool)$this->uri;
|
||||
}
|
||||
|
||||
public function setURI($uri) {
|
||||
|
|
Loading…
Reference in a new issue