Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/engine/PhabricatorElasticSearchEngine.php
Show All 9 Lines | public function getEngineIdentifier() { | ||||
return 'elasticsearch'; | return 'elasticsearch'; | ||||
} | } | ||||
public function getEnginePriority() { | public function getEnginePriority() { | ||||
return 10; | return 10; | ||||
} | } | ||||
public function isEnabled() { | public function isEnabled() { | ||||
return (bool)PhabricatorEnv::getEnvConfig('search.elastic.host'); | $this->uri = PhabricatorEnv::getEnvConfig('search.elastic.host'); | ||||
$this->index = PhabricatorEnv::getEnvConfig('search.elastic.namespace'); | |||||
return (bool)$this->uri; | |||||
} | } | ||||
public function setURI($uri) { | public function setURI($uri) { | ||||
$this->uri = $uri; | $this->uri = $uri; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setIndex($index) { | public function setIndex($index) { | ||||
▲ Show 20 Lines • Show All 409 Lines • Show Last 20 Lines |