Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101028537
PhabricatorSearchConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 4, 23:24
Size
867 B
Mime Type
text/x-php
Expires
Thu, Feb 6, 23:24 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24079346
Attached To
rPH Phabricator
PhabricatorSearchConfigOptions.php
View Options
<?php
final
class
PhabricatorSearchConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
'Search'
);
}
public
function
getDescription
()
{
return
pht
(
'Options relating to Search.'
);
}
public
function
getIcon
()
{
return
'fa-search'
;
}
public
function
getGroup
()
{
return
'apps'
;
}
public
function
getOptions
()
{
return
array
(
$this
->
newOption
(
'search.elastic.host'
,
'string'
,
null
)
->
setLocked
(
true
)
->
setDescription
(
pht
(
'Elastic Search host.'
))
->
addExample
(
'http://elastic.example.com:9200/'
,
pht
(
'Valid Setting'
)),
$this
->
newOption
(
'search.elastic.namespace'
,
'string'
,
'phabricator'
)
->
setLocked
(
true
)
->
setDescription
(
pht
(
'Elastic Search index.'
))
->
addExample
(
'phabricator2'
,
pht
(
'Valid Setting'
)),
);
}
}
Event Timeline
Log In to Comment