Page MenuHomeGitPull.it
Diviner Tech Docs PhabricatorSearchService

class PhabricatorSearchService
Phorge 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
PhabricatorSearchHostAn instance of a subclass of PhabricatorSearchHost

public function getEngine()

This method is not documented.
Return
PhabricatorFulltextStorageEngineA subclass of PhabricatorFulltextStorageEngine

public function getDisplayName()

This method is not documented.
Return
stringDisplay name of the search host, e.g. "MySQL"

public function getStatusViewColumns()

This method is not documented.
Return
string[]Get a list of fields to show in the status overview UI

public function setConfig($config)

This method is not documented.
Parameters
$config
Return
wild

public function getConfig()

This method is not documented.
Return
string[]

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$query
Return
PhabricatorFulltextResultSet