Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91984795
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, Nov 16, 09:25
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Nov 18, 09:25 (2 d)
Engine
blob
Format
Raw Data
Handle
22355921
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
getOptions
()
{
return
array
(
$this
->
newOption
(
'search.engine-selector'
,
'class'
,
'PhabricatorDefaultSearchEngineSelector'
)
->
setBaseClass
(
'PhabricatorSearchEngineSelector'
)
->
setSummary
(
pht
(
'Search engine selector.'
))
->
setDescription
(
pht
(
'Phabricator uses a search engine selector to choose which '
.
'search engine to use when indexing and reconstructing '
.
'documents, and when executing queries. You can override the '
.
'engine selector to provide a new selector class which can '
.
'select some custom engine you implement, if you want to store '
.
'your documents in some search engine which does not have '
.
'default support.'
)),
$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