public function getHosts()Inherited
wild |
public function setService($service)
PhabricatorSearchService | $service |
wild |
public function getService()Inherited
PhabricatorSearchService |
public function getHostType()
Implementations must return a prototype host instance which is cloned by the PhabricatorSearchService infrastructure to configure each engine.
PhabricatorSearchHost |
public function getEngineIdentifier()
Return a unique, nonempty string which identifies this storage engine.
string | Unique string for this engine, max length 32. |
public function reindexAbstractDocument($doc)
Update the index for an abstract document.
PhabricatorSearchAbstractDocument | $document | Document to update. |
void |
public function executeSearch($query)
Execute a search query.
PhabricatorSavedQuery | $query | A query to execute. |
list | A list of matching PHIDs. |
public function indexExists($host)
Does the search index exist?
bool |
public function getIndexStats($host)
Implementations should override this method to return a dictionary of stats which are suitable for display in the admin UI.
wild |
public function indexIsSane($host)
Is the index in a usable state?
bool |
public function initIndex()
Do any sort of setup for the search index.
void |
public function getFulltextTokens()Inherited
wild |
public function getTimestampField()
wild |
public function getTextFieldType()
wild |
public function getHostForRead()
wild |
public function getHostForWrite()
wild |
public function setTimeout($timeout)
$timeout |
wild |
public function getTimeout()
wild |
public function getTypeConstants($class)
$class |
wild |
private function buildSpec($query)
PhabricatorSavedQuery | $query |
wild |
private function getIndexConfiguration()
wild |
private function check($actual, $required, $path)
Recursively check if two Elasticsearch configuration arrays are equal
$actual | $actual | |
$required | $required | array |
$path |
bool |
private static function normalizeConfigValue($value)
Normalize a config value for comparison. Elasticsearch accepts all kinds of config values but it tends to throw back 'true' for true and 'false' for false so we normalize everything. Sometimes, oddly, it'll throw back false for false....
mixed | $value | config value |
mixed | value normalized |
private function executeRequest($host, $path, $data, $method)
PhabricatorElasticsearchHost | $host | |
$path | ||
array | $data | |
$method |
wild |