@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.

Search options.

Test Plan:
- Looked at the new options
- Saved `search.engine-selector` successfully.

Reviewers: epriestley, chad, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2255

Differential Revision: https://secure.phabricator.com/D4410

authored by

Ricky Elrod and committed by
epriestley
08687c0b dbdb01f8

+44 -1
+7 -1
src/__phutil_library_map__.php
··· 1143 1143 'PhabricatorSearchAbstractDocument' => 'applications/search/index/PhabricatorSearchAbstractDocument.php', 1144 1144 'PhabricatorSearchAttachController' => 'applications/search/controller/PhabricatorSearchAttachController.php', 1145 1145 'PhabricatorSearchBaseController' => 'applications/search/controller/PhabricatorSearchBaseController.php', 1146 + 'PhabricatorSearchConfigOptions' => 'applications/search/config/PhabricatorSearchConfigOptions.php', 1146 1147 'PhabricatorSearchController' => 'applications/search/controller/PhabricatorSearchController.php', 1147 1148 'PhabricatorSearchDAO' => 'applications/search/storage/PhabricatorSearchDAO.php', 1148 1149 'PhabricatorSearchDocument' => 'applications/search/storage/document/PhabricatorSearchDocument.php', ··· 2478 2479 'PhabricatorSSHWorkflow' => 'PhutilArgumentWorkflow', 2479 2480 'PhabricatorSearchAttachController' => 'PhabricatorSearchBaseController', 2480 2481 'PhabricatorSearchBaseController' => 'PhabricatorController', 2482 + 'PhabricatorSearchConfigOptions' => 'PhabricatorApplicationConfigOptions', 2481 2483 'PhabricatorSearchController' => 'PhabricatorSearchBaseController', 2482 2484 'PhabricatorSearchDAO' => 'PhabricatorLiskDAO', 2483 2485 'PhabricatorSearchDocument' => 'PhabricatorSearchDAO', ··· 2687 2689 'PhrictionDAO' => 'PhabricatorLiskDAO', 2688 2690 'PhrictionDeleteController' => 'PhrictionController', 2689 2691 'PhrictionDiffController' => 'PhrictionController', 2690 - 'PhrictionDocument' => 'PhrictionDAO', 2692 + 'PhrictionDocument' => 2693 + array( 2694 + 0 => 'PhrictionDAO', 2695 + 1 => 'PhabricatorPolicyInterface', 2696 + ), 2691 2697 'PhrictionDocumentController' => 'PhrictionController', 2692 2698 'PhrictionDocumentEditor' => 'PhabricatorEditor', 2693 2699 'PhrictionDocumentPreviewController' => 'PhrictionController',
+37
src/applications/search/config/PhabricatorSearchConfigOptions.php
··· 1 + <?php 2 + 3 + final class PhabricatorSearchConfigOptions 4 + extends PhabricatorApplicationConfigOptions { 5 + 6 + public function getName() { 7 + return pht("Search"); 8 + } 9 + 10 + public function getDescription() { 11 + return pht("Options relating to Search."); 12 + } 13 + 14 + public function getOptions() { 15 + return array( 16 + $this->newOption( 17 + 'search.engine-selector', 18 + 'class', 19 + 'PhabricatorDefaultSearchEngineSelector') 20 + ->setBaseClass('PhabricatorSearchEngineSelector') 21 + ->setSummary(pht("Search engine selector.")) 22 + ->setDescription( 23 + pht( 24 + "Phabricator uses a search engine selector to choose which ". 25 + "search engine to use when indexing and reconstructing ". 26 + "documents, and when executing queries. You can override the ". 27 + "engine selector to provide a new selector class which can ". 28 + "select some custom engine you implement, if you want to store ". 29 + "your documents in some search engine which does not have ". 30 + "default support.")), 31 + $this->newOption('search.elastic.host', 'string', null) 32 + ->setDescription(pht("Elastic Search host.")) 33 + ->addExample('http://elastic.example.com:9200/', pht('Valid Setting')), 34 + ); 35 + } 36 + 37 + }