Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112485794
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
Sat, May 10, 22:18
Size
867 B
Mime Type
text/x-php
Expires
Mon, May 12, 22:18 (2 d)
Engine
blob
Format
Raw Data
Handle
26095268
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