version = $version; return $this; } public function getVersion() { if ($this->version === null) { throw new Exception( pht('Version not configured; call setVersion() or setService() first.')); } return $this->version; } public function getDocumentUri($type, $phid) { return '/_doc/'.$phid; } public function getSearchUri(array $types) { return '/_search'; } public function getEngineIdentifier() { return 'elasticsearch-modern'; } public function getHostType() { return new VyOSElasticModernHost($this); } public function reindexAbstractDocument( PhabricatorSearchAbstractDocument $doc) { throw new Exception(pht( 'reindexAbstractDocument() is not yet implemented on '. 'VyOSElasticModernFulltextStorageEngine; lands in Task E7.')); } public function executeSearch(PhabricatorSavedQuery $query) { throw new Exception(pht( 'executeSearch() is not yet implemented; lands in Task E8.')); } public function indexExists() { throw new Exception(pht( 'indexExists() is not yet implemented; lands in Task E8.')); } public function getIndexStats() { throw new Exception(pht( 'getIndexStats() is not yet implemented; lands in Task E8.')); } }