Elasticsearch: Implemented function drop_databases()
This commit is contained in:
parent
9ac04aa5b9
commit
1bb436080b
|
@ -288,6 +288,15 @@ if (isset($_GET["elastic"])) {
|
||||||
return $connection->query(urlencode($db), array(), 'PUT');
|
return $connection->query(urlencode($db), array(), 'PUT');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Drop databases
|
||||||
|
* @param array
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
function drop_databases($databases) {
|
||||||
|
global $connection;
|
||||||
|
return $connection->query(urlencode(implode(',', $databases)), array(), 'DELETE');
|
||||||
|
}
|
||||||
|
|
||||||
$jush = "elastic";
|
$jush = "elastic";
|
||||||
$operators = array("=", "query");
|
$operators = array("=", "query");
|
||||||
$functions = array();
|
$functions = array();
|
||||||
|
|
Loading…
Reference in a new issue