Differential D17564 Diff 42254 src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php
Show First 20 Lines • Show All 499 Lines • ▼ Show 20 Lines | return array( | ||||
array('total', 'store', 'size_in_bytes'))), | array('total', 'store', 'size_in_bytes'))), | ||||
); | ); | ||||
} | } | ||||
private function executeRequest(PhabricatorElasticSearchHost $host, $path, | private function executeRequest(PhabricatorElasticSearchHost $host, $path, | ||||
array $data, $method = 'GET') { | array $data, $method = 'GET') { | ||||
$uri = $host->getURI($path); | $uri = $host->getURI($path); | ||||
$data = json_encode($data); | $data = phutil_json_encode($data); | ||||
$future = new HTTPSFuture($uri, $data); | $future = new HTTPSFuture($uri, $data); | ||||
if ($method != 'GET') { | if ($method != 'GET') { | ||||
$future->setMethod($method); | $future->setMethod($method); | ||||
} | } | ||||
if ($this->getTimeout()) { | if ($this->getTimeout()) { | ||||
$future->setTimeout($this->getTimeout()); | $future->setTimeout($this->getTimeout()); | ||||
} | } | ||||
try { | try { | ||||
Show All 26 Lines |