Page MenuHomePhorge
Diviner Tech Docs PhabricatorSearchService

class PhabricatorSearchService
Phorge Technical Documentation ()

This class is not documented.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

public function __construct($engine)

This method is not documented.
Parameters
PhabricatorFulltextStorageEngine$engine
Return
this//Implicit.//

public function newHost($config)

This method is not documented.
Parameters
$config
Return
wild

public function getEngine()

This method is not documented.
Return
wild

public function getDisplayName()

This method is not documented.
Return
wild

public function getStatusViewColumns()

This method is not documented.
Return
wild

public function setConfig($config)

This method is not documented.
Parameters
$config
Return
wild

public function getConfig()

This method is not documented.
Return
wild

public static function getConnectionStatusMap()

This method is not documented.
Return
wild

public function isWritable()

This method is not documented.
Return
wild

public function isReadable()

This method is not documented.
Return
wild

public function getPort()

This method is not documented.
Return
wild

public function getProtocol()

This method is not documented.
Return
wild

public function getVersion()

This method is not documented.
Return
wild

public function getHosts()

This method is not documented.
Return
wild

public function getAnyHostForRole($role)

Get a random host reference with the specified role, skipping hosts which failed recent health checks.

Parameters
$role
Return
PhabricatorSearchHost

public function getAllHostsForRole($role)

Get all configured hosts for this service which have the specified role.

Parameters
$role
Return
PhabricatorSearchHost[]

public static function getAllServices()

Get a reference to all configured fulltext search cluster services

Return
PhabricatorSearchService[]

public static function loadAllFulltextStorageEngines()

Load all valid PhabricatorFulltextStorageEngine subclasses

Return
wild

public static function newRefs()

Create instances of PhabricatorSearchService based on configuration

Return
PhabricatorSearchService[]

public static function reindexAbstractDocument($document)

(re)index the document: attempt to pass the document to all writable fulltext search hosts

Parameters
PhabricatorSearchAbstractDocument$document
Return
wild

public static function executeSearch($query)

Execute a full-text query and return a list of PHIDs of matching objects.

Parameters
PhabricatorSavedQuery$query
Return
string[]

public static function newResultSet($query)

This method is not documented.
Parameters
PhabricatorSavedQuery$query
Return
wild