@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Fabian Stelzer and committed by
epriestley
7ecd5155 f21972a0

+6 -1
+6 -1
src/applications/search/engine/PhabricatorElasticSearchEngine.php
··· 6 6 private $index; 7 7 private $timeout; 8 8 9 + public function __construct() { 10 + $this->uri = PhabricatorEnv::getEnvConfig('search.elastic.host'); 11 + $this->index = PhabricatorEnv::getEnvConfig('search.elastic.namespace'); 12 + } 13 + 9 14 public function getEngineIdentifier() { 10 15 return 'elasticsearch'; 11 16 } ··· 15 20 } 16 21 17 22 public function isEnabled() { 18 - return (bool)PhabricatorEnv::getEnvConfig('search.elastic.host'); 23 + return (bool)$this->uri; 19 24 } 20 25 21 26 public function setURI($uri) {