Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorSearchService

class PhabricatorSearchService
Phabricator Technical Documentation ()

This class is not documented.

Methods

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