[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
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 ->setLocked(true) 33 ->setDescription(pht('Elastic Search host.')) 34 ->addExample('http://elastic.example.com:9200/', pht('Valid Setting')), 35 $this->newOption('search.elastic.namespace', 'string', 'phabricator') 36 ->setLocked(true) 37 ->setDescription(pht('Elastic Search index.')) 38 ->addExample('phabricator2', pht('Valid Setting')), 39 ); 40 } 41 42 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |