Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F952094
PhabricatorSearchConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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'
)),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 3:29 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
226330
Default Alt Text
PhabricatorSearchConfigOptions.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment